Skip to content

Commit b958fca

Browse files
eloparcologanek
authored andcommitted
fix: avoid race condition in test
1 parent c1b421c commit b958fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testsuite/thread_spawn-simple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
6868
assert(data[i].tid == tid[i]);
6969
assert(data[i].value == 60);
7070

71-
for (j = i + 1; j < data_count; j++)
71+
for (j = 0; j < i; j++)
7272
{
7373
assert(data[i].tid != data[j].tid);
7474
}

0 commit comments

Comments
 (0)