summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/circular_dependency/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-04 09:27:30 +0800
committerGitHub <[email protected]>2024-02-04 09:27:30 +0800
commit0d72b2ef9a60ee5a56cfc4f2d5d0eb7fc8176084 (patch)
treee14f04b6c8d92b6f929ebbc17b7bb32a50d167fa /tests/projects/c++/modules/circular_dependency/test.lua
parent794f6db0adafe26f041d31594cc7e516017ede39 (diff)
Update test.lua
Diffstat (limited to 'tests/projects/c++/modules/circular_dependency/test.lua')
-rw-r--r--tests/projects/c++/modules/circular_dependency/test.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/projects/c++/modules/circular_dependency/test.lua b/tests/projects/c++/modules/circular_dependency/test.lua
index fc20e469c..727e9187e 100644
--- a/tests/projects/c++/modules/circular_dependency/test.lua
+++ b/tests/projects/c++/modules/circular_dependency/test.lua
@@ -1,5 +1,7 @@
import(".test_base", {alias = "test_build"})
function main(t)
- t:will_raise(test_build, "circular modules dependency detected")
+ if test_build.can_build() then
+ t:will_raise(test_build, "circular modules dependency detected")
+ end
end