code clean up
[oweals/gnunet.git] / src / util / test_os_priority.c
index 8284af5b86f79895cee838f327f60baa976a5b88..ab0aba33de06e077762687aec7d0ff661b0ceea2 100644 (file)
@@ -35,6 +35,26 @@ testprio ()
       GNUNET_OS_set_process_priority (getpid (),
                                       GNUNET_SCHEDULER_PRIORITY_DEFAULT))
     return 1;
+  if (GNUNET_OK !=
+      GNUNET_OS_set_process_priority (getpid (),
+                                      GNUNET_SCHEDULER_PRIORITY_UI))
+    return 1;
+  if (GNUNET_OK !=
+      GNUNET_OS_set_process_priority (getpid (),
+                                      GNUNET_SCHEDULER_PRIORITY_IDLE))
+    return 1;
+  if (GNUNET_OK !=
+      GNUNET_OS_set_process_priority (getpid (),
+                                      GNUNET_SCHEDULER_PRIORITY_BACKGROUND))
+    return 1;
+  if (GNUNET_OK !=
+      GNUNET_OS_set_process_priority (getpid (),
+                                      GNUNET_SCHEDULER_PRIORITY_HIGH))
+    return 1;
+  if (GNUNET_OK !=
+      GNUNET_OS_set_process_priority (getpid (),
+                                      GNUNET_SCHEDULER_PRIORITY_HIGH))
+    return 1;
 #ifndef MINGW
   child = fork ();
   if (child == 0)