aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/close-bad-fd.c
blob: f63bb9abe870769582db3c501dd4c721752221fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* Tries to close an invalid fd, which must either fail silently
   or terminate with exit code -1. */

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

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