Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / grading / threads / alarm-zero.c
diff --git a/grading/threads/alarm-zero.c b/grading/threads/alarm-zero.c
deleted file mode 100644 (file)
index f1ac775..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Problem 1-1: Alarm Clock tests.
-
-   Tests timer_sleep(0).  Only requirement is that it not crash. */
-
-#include "threads/test.h"
-#include <stdio.h>
-#include "threads/malloc.h"
-#include "threads/synch.h"
-#include "threads/thread.h"
-#include "devices/timer.h"
-
-void
-test (void) 
-{
-  printf ("\n"
-          "Testing timer_sleep(0).\n");
-  timer_sleep (0);
-  printf ("Success.\n");
-}