a627b9b64020d543874e2768ae134eac9be692e0
[pintos-anon] / grading / threads / alarm-negative.c
1 /* Problem 1-1: Alarm Clock tests.
2
3    Tests timer_sleep(-100).  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(-100).\n");
17   timer_sleep (-100);
18   printf ("Success.\n");
19 }