[CRIU] [PATCH] test: a static test should do nothing after test_daemon()
Andrey Vagin
avagin at openvz.org
Mon Sep 7 00:03:29 PDT 2015
Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm/live/static/file_shared.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/zdtm/live/static/file_shared.c b/test/zdtm/live/static/file_shared.c
index b385d78..3547146 100644
--- a/test/zdtm/live/static/file_shared.c
+++ b/test/zdtm/live/static/file_shared.c
@@ -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)
--
2.4.3
More information about the CRIU
mailing list