test(build): interface units that import each other are refused
ImportCycle builds three fixtures as static libraries, each on a fresh copy outside the checkout: two partitions that import each other, a partition that imports its own module, and two modules that import each other. Each build has to return an error that holds its round, "Ring:First -> Ring:Second -> Ring:First", "Own -> Own:Part -> Own" and "East -> West -> East", and leave neither a build nor a bin directory. Before the refusal the test ran into its timeout: the first of those builds never returned.
This commit is contained in:
parent
e87dc4f015
commit
ee331377a4
9 changed files with 126 additions and 0 deletions
7
tests/ImportCycle/fixture/partitions/Ring-Second.cppm
Normal file
7
tests/ImportCycle/fixture/partitions/Ring-Second.cppm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module Ring:Second;
|
||||
import :First;
|
||||
|
||||
export bool Second();
|
||||
Loading…
Reference in a new issue