From bee835ebeb3173ede20a2db601ffac28165cc72a Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Wed, 2 Sep 2015 11:07:00 +0300 Subject: [PATCH] zdtm/file_locks01: fix testing devices Reported-by: Mr Jenkins Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/file_locks01.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/zdtm/live/static/file_locks01.c b/test/zdtm/live/static/file_locks01.c index 1bdff9a5b..fd74ffe55 100644 --- a/test/zdtm/live/static/file_locks01.c +++ b/test/zdtm/live/static/file_locks01.c @@ -105,7 +105,10 @@ static int check_file_locks() break; } - if (i_no != inodes[0] && i_no != inodes[1] && i_no != inodes[2] && makedev(maj, min) != dev) + if (i_no != inodes[0] && i_no != inodes[1] && i_no != inodes[2]) + continue; + + if (makedev(maj, min) != dev) continue; if (!strcmp(fl_flag, "FLOCK") && !strcmp(fl_type, "ADVISORY")) {