Remove debug prints from cs and csquery
[akaros.git] / tests / pthread_test.c
index 9c07536..ec17604 100644 (file)
@@ -69,10 +69,11 @@ int main(int argc, char** argv)
        if (nr_vcores) {
                /* Only do the vcore trickery if requested */
                pthread_can_vcore_request(FALSE);       /* 2LS won't manage vcores */
+               pthread_need_tls(FALSE);
                pthread_lib_init();                                     /* gives us one vcore */
                vcore_request(nr_vcores - 1);           /* ghetto incremental interface */
                for (int i = 0; i < nr_vcores; i++) {
-                       printf("Vcore %d mapped to pcore %d\n", i,
+                       printd("Vcore %d mapped to pcore %d\n", i,
                               __procinfo.vcoremap[i].pcoreid);
                }
        }
@@ -80,7 +81,8 @@ int main(int argc, char** argv)
        /* create and join on yield */
        for (int i = 0; i < nr_yield_threads; i++) {
                printf_safe("[A] About to create thread %d\n", i);
-               assert(!pthread_create(&my_threads[i], NULL, &yield_thread, NULL));
+               if (pthread_create(&my_threads[i], NULL, &yield_thread, NULL))
+                       perror("pth_create failed");
        }
        if (gettimeofday(&start_tv, 0))
                perror("Start time error...");