summaryrefslogtreecommitdiffstats
path: root/src/tests/threads/alarm-negative.c
blob: aec52cf302fda17cf9557855a35e29dd2ed5497f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Tests timer_sleep(-100).  Only requirement is that it not crash. */

#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/malloc.h"
#include "threads/synch.h"
#include "threads/thread.h"
#include "devices/timer.h"

void
test_alarm_negative (void) 
{
  timer_sleep (-100);
  pass ();
}