Skip to content

Commit a839f85

Browse files
committed
Fix unstable test, due to possible race condition
The "has_invoked_after" should never be executed before the "has_invoked_before" test, or it will fail.
1 parent 18915e8 commit a839f85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/testing/before_after_callbacks_test.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ define_test_case(
66

77
BEFORE "before_macro"
88
AFTER "after_function"
9+
10+
# Very important that these tests do NOT run parallel with
11+
# other tests, to avoid race condition(s) for these tests.
12+
RUN_SERIAL
913
)
1014

1115
macro(before_macro)

0 commit comments

Comments
 (0)