Skip to content

Commit 14903c8

Browse files
avargitster
authored andcommitted
trace2 tests: guard pthread test with "PTHREAD"
Since 8107162 (trace2: add global counter mechanism, 2022-10-24) these tests have been failing when git is compiled with NO_PTHREADS=Y, which is always the case e.g. if 'uname -s' is "NONSTOP_KERNEL". Reported-by: Randall S. Becker <[email protected]> Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8107162 commit 14903c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t0211-trace2-perf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' '
203203
have_timer_event "main" "timer" "test" "test1" 5 actual
204204
'
205205

206-
test_expect_success 'stopwatch timer test/test2' '
206+
test_expect_success PTHREAD 'stopwatch timer test/test2' '
207207
test_when_finished "rm trace.perf actual" &&
208208
test_config_global trace2.perfBrief 1 &&
209209
test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
@@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' '
249249
have_counter_event "main" "counter" "test" "test1" 15 actual
250250
'
251251

252-
test_expect_success 'global counter test/test2' '
252+
test_expect_success PTHREAD 'global counter test/test2' '
253253
test_when_finished "rm trace.perf actual" &&
254254
test_config_global trace2.perfBrief 1 &&
255255
test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&

0 commit comments

Comments
 (0)