parlib: Move alarm/timer functions from benchutil
[akaros.git] / user / utest / signal.c
index 81a9528..9656d8e 100644 (file)
@@ -1,4 +1,4 @@
-#include <utest.h>
+#include <utest/utest.h>
 #include <pthread.h>
 
 TEST_SUITE("SIGNALS");
@@ -14,8 +14,9 @@ bool test_sigmask(void) {
                sigemptyset(&s);
                sigaddset(&s, SIGUSR2);
                pthread_sigmask(SIG_BLOCK, &s, NULL);
-               for (int i=0; i<1000; i++)
+               for (int i=0; i<100000; i++)
                        pthread_yield();
+               return 0;
        }
        void signal_handler(int signo)
        {