12 lines
244 B
C
Executable file
12 lines
244 B
C
Executable file
/* 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"));
|
|
}
|