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