Skip to content

Commit 17694cd

Browse files
committed
fix logic of module.test
1 parent f4f1f48 commit 17694cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/module.test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// for g++-15 the order is important -- import after includes
77
import beman.scope;
88

9+
910
struct DummyResource {
1011
bool& cleaned;
1112

@@ -15,7 +16,8 @@ struct DummyResource {
1516
};
1617

1718
TEST_CASE("module-test", "[scope_module_test]") {
18-
bool exit_ran, success_ran, fail_ran, cleaned = true;
19+
bool exit_ran, success_ran, fail_ran = false;
20+
bool cleaned = true;
1921
{
2022
// clang-format off
2123
beman::scope::scope_exit _se([&exit_ran] { exit_ran = true; });

0 commit comments

Comments
 (0)