test: don't relay on thrd_current() returning an int
[model-checker.git] / test / releaseseq.c
index a63fa93620bb3601e6dbded7f8cff0e6fe92ebfb..548f0a822380ae19640cb30197d7ac6e1209fde4 100644 (file)
@@ -38,7 +38,7 @@ int user_main(int argc, char **argv)
 
        atomic_init(&x, 0);
 
-       printf("Thread %d: creating 3 threads\n", thrd_current());
+       printf("Main thread: creating 3 threads\n");
        thrd_create(&t1, (thrd_start_t)&a, NULL);
        thrd_create(&t2, (thrd_start_t)&b, NULL);
        thrd_create(&t3, (thrd_start_t)&c, NULL);
@@ -46,7 +46,7 @@ int user_main(int argc, char **argv)
        thrd_join(t1);
        thrd_join(t2);
        thrd_join(t3);
-       printf("Thread %d is finished\n", thrd_current());
+       printf("Main thread is finished\n");
 
        return 0;
 }