diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-11-25 00:48:21 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-11-25 03:36:26 +0300 |
commit | 14903c8e9208a4562e3fbc52614e4adb731e31e0 (patch) | |
tree | 6dc831bcb09bc032db96b4920f826d73826e7752 /t/t0211-trace2-perf.sh | |
parent | 81071626ba1ec54ad72de1e0a9a49c78eb87a2c8 (diff) |
trace2 tests: guard pthread test with "PTHREAD"
Since 81071626ba1 (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 <randall.becker@nexbridge.ca>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0211-trace2-perf.sh')
-rwxr-xr-x | t/t0211-trace2-perf.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8ca..b4e9135118 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREAD 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREAD 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && |