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:
parent
78db0f2dcf
commit
0171752084
2
test/.gitignore
vendored
2
test/.gitignore
vendored
@ -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
|
||||
|
@ -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
|
||||
|
15
test/fork.c
15
test/fork.c
@ -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);
|
||||
}
|
15
test/vfork.c
15
test/vfork.c
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user