This repository has been archived on 2021-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
OS/pintos-env/pintos/tests/threads/alarm-zero.c

16 lines
288 B
C
Raw Permalink Normal View History

/* 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 ();
}