@@ -121,6 +121,7 @@ TEST_CASE("encoded thread name check", "[thrd][thrd_with_create_attrs][encoded-n
121121 int res0 = 0 ; \
122122 thrd_join (t0_arg.thr , &res0); \
123123 REQUIRE (res0 == 0xF3 ); \
124+ REQUIRE (res0 == t0_arg.id ); \
124125 REQUIRE (t0_arg.name_get_result0 == thrd_success); \
125126 REQUIRE (t0_arg.expected_name_result0 == 0 ); \
126127 \
@@ -129,6 +130,8 @@ TEST_CASE("encoded thread name check", "[thrd][thrd_with_create_attrs][encoded-n
129130 REQUIRE (create_err1 == thrd_success); \
130131 int res1 = 0 ; \
131132 thrd_join (t1_arg.thr , &res1); \
133+ REQUIRE (res1 == 0xF5 ) \
134+ REQUIRE (res1 == t1_arg.id ); \
132135 REQUIRE (t1_arg.name_set_result0 == thrd_success); \
133136 REQUIRE (t1_arg.name_get_result0 == thrd_success); \
134137 REQUIRE (t1_arg.expected_name_result0 == 0 ); \
@@ -137,8 +140,7 @@ TEST_CASE("encoded thread name check", "[thrd][thrd_with_create_attrs][encoded-n
137140 REQUIRE (t1_arg.expected_name_result1 == 0 ); \
138141 REQUIRE (t1_arg.name_set_result2 == thrd_success); \
139142 REQUIRE (t1_arg.name_get_result2 == thrd_success); \
140- REQUIRE (t1_arg.expected_name_result2 == 0 ); \
141- REQUIRE (res1 == 0xF5 )
143+ REQUIRE (t1_arg.expected_name_result2 == 0 );
142144
143145 SECTION (" c8/u8/ascii" ) {
144146 MAKE_TEST_BRACKET (c8, u8" meow?!" , ztd_char8_t , c8, u8" meow?!" , ztd_char8_t );
0 commit comments