test: remove fork.c and vfork.c

These manual tests are obsoleted by fork-f.test and vfork-f.test.

* test/fork.c: Remove.
* test/vfork.c: Remove.
* test/Makefile (PROGS): Remove fork and vfork.
* test/.gitignore: Remove fork and vfork.
This commit is contained in:
Дмитрий Левин 2015-12-30 23:28:35 +00:00
parent 78db0f2dcf
commit 0171752084
4 changed files with 1 additions and 33 deletions

2
test/.gitignore vendored
View File

@ -1,6 +1,5 @@
childthread
clone
fork
leaderkill
many_looping_threads
mmap_offset_decode
@ -12,7 +11,6 @@ sigkill_rain
skodic
threaded_execve
ubi
vfork
wait_must_be_interruptible
x32_lseek
x32_mmap

View File

@ -1,7 +1,7 @@
CFLAGS += -Wall
PROGS = \
vfork fork sig skodic clone leaderkill childthread \
sig skodic clone leaderkill childthread \
sigkill_rain wait_must_be_interruptible threaded_execve \
mtd ubi seccomp sfd mmap_offset_decode x32_lseek x32_mmap \
many_looping_threads

View File

@ -1,15 +0,0 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main(int argc, char *argv[])
{
if (fork() == 0) {
write(1, "child\n", 6);
} else {
wait(0);
write(1, "parent\n", 7);
}
exit(0);
}

View File

@ -1,15 +0,0 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main(int argc, char *argv[])
{
if (vfork() == 0) {
write(1, "child\n", 6);
} else {
wait(0);
write(1, "parent\n", 7);
}
exit(0);
}