summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/close-stdin.c
blob: 9bbf9f2fd282d207973f68c0d2ffe2b4c87757df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* Tries to close the keyboard input stream, which must either
   fail silently or terminate with exit code -1. */

#include <syscall.h>
#include "tests/main.h"

void
test_main (void) 
{
  close (0);
}