summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/exec-missing.c
blob: bf08cad14678c17fbcc611578f8e56c5f7948235 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/* Tries to execute a nonexistent process.
   The exec system call must return -1. */

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

void
test_main (void) 
{
  msg ("exec(\"no-such-file\"): %d", exec ("no-such-file"));
}