2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

test: a static test should do nothing after test_daemon()

Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2015-09-07 10:03:00 +03:00 committed by Pavel Emelyanov
parent 644c7659e9
commit 68923c974b

View File

@ -36,14 +36,14 @@ int main(int argc, char **argv)
if (fd3 == -1) if (fd3 == -1)
return 1; return 1;
test_daemon();
pid = test_fork(); pid = test_fork();
if (pid == -1) if (pid == -1)
return 1; return 1;
else if (pid) { else if (pid) {
fcntl(fd2, F_SETFD, 1); fcntl(fd2, F_SETFD, 1);
test_daemon();
test_waitsig(); test_waitsig();
off = lseek(fd, OFFSET, SEEK_SET); off = lseek(fd, OFFSET, SEEK_SET);
if (off == (off_t) -1) if (off == (off_t) -1)