aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/threads/alarm-zero.c
blob: c8a3ee2849fe04ab8776f6e961cf2adf5abb6f50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Tests timer_sleep(0), which should return immediately. */

#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_zero (void) 
{
  timer_sleep (0);
  pass ();
}