mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue