Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / 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 <stdio.h>
6 #include "tests/threads/tests.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_alarm_zero (void) 
14 {
15   timer_sleep (0);
16   pass ();
17 }