# [PATCH] trace2 tests: fix PTHREADS prereq

2 messages from 2023-05-25 to 2023-05-26. Participants: Todd Zullinger, Junio C Hamano.
Thread: https://gitlist.dev/t/59791

## Todd Zullinger, 2023-05-25 03:12

Subject: [PATCH] trace2 tests: fix PTHREADS prereq
Message-ID: <20230525031218.3554586-1-tmz@pobox.com>
URL: https://gitlist.dev/e/20230525031218.3554586-1-tmz%40pobox.com

```
The prereq guard added in 14903c8e92 (trace2 tests: guard pthread test
with "PTHREAD", 2022-11-24) lacks the S in PTHREADS, causing it to never
be satisfied.  Fix the spelling of the prereq.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
 t/t0211-trace2-perf.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh
index b4e9135118..cfba686132 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 PTHREAD 'stopwatch timer test/test2' '
+test_expect_success PTHREADS '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 PTHREAD 'global counter test/test2' '
+test_expect_success PTHREADS '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" &&

```

## Junio C Hamano, 2023-05-26 04:52

Subject: Re: [PATCH] trace2 tests: fix PTHREADS prereq
Message-ID: <xmqqo7m7elt2.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqo7m7elt2.fsf%40gitster.g
In-Reply-To: <20230525031218.3554586-1-tmz@pobox.com>

```
Todd Zullinger <tmz@pobox.com> writes:

> The prereq guard added in 14903c8e92 (trace2 tests: guard pthread test
> with "PTHREAD", 2022-11-24) lacks the S in PTHREADS, causing it to never
> be satisfied.  Fix the spelling of the prereq.

Nice spootting.  Thanks.

```
