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:
parent
644c7659e9
commit
68923c974b
@ -36,14 +36,14 @@ int main(int argc, char **argv)
|
||||
if (fd3 == -1)
|
||||
return 1;
|
||||
|
||||
test_daemon();
|
||||
|
||||
pid = test_fork();
|
||||
|
||||
if (pid == -1)
|
||||
return 1;
|
||||
else if (pid) {
|
||||
fcntl(fd2, F_SETFD, 1);
|
||||
|
||||
test_daemon();
|
||||
test_waitsig();
|
||||
off = lseek(fd, OFFSET, SEEK_SET);
|
||||
if (off == (off_t) -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user