From 68923c974b54366bca7c4ba4d26c50f4e37bc8d7 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Mon, 7 Sep 2015 10:03:00 +0300 Subject: [PATCH] test: a static test should do nothing after test_daemon() Reported-by: Mr Jenkins Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- 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 b385d78c2..3547146e6 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)