Get rid of unnecessary barrier. Improve comment.
[pintos-anon] / grading / threads / alarm-zero.c
1 /* Problem 1-1: Alarm Clock tests.
2
3    Tests timer_sleep(0).  Only requirement is that it not crash. */
4
5 #include "threads/test.h"
6 #include <stdio.h>
7 #include "threads/malloc.h"
8 #include "threads/synch.h"
9 #include "threads/thread.h"
10 #include "devices/timer.h"
11
12 void
13 test (void) 
14 {
15   printf ("\n"
16           "Testing timer_sleep(0).\n");
17   timer_sleep (0);
18   printf ("Success.\n");
19 }