summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/open-normal.c
blob: 5132465335d17f1302689910aff9bffe7bef1c0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Open a file. */

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

void
test_main (void) 
{
  int handle = open ("sample.txt");
  if (handle < 2)
    fail ("open() returned %d", handle);
}