|
|
14f8ab |
From 47d8c316f622850d060af90d1d939528ace5607a Mon Sep 17 00:00:00 2001
|
|
|
14f8ab |
From: Csaba Henk <csaba@redhat.com>
|
|
|
14f8ab |
Date: Thu, 14 Feb 2019 02:01:38 +0100
|
|
|
14f8ab |
Subject: [PATCH 475/478] fuse lock interrupt: fix flock_interrupt.t
|
|
|
14f8ab |
|
|
|
14f8ab |
Upstream:
|
|
|
14f8ab |
> Reviewed-on: https://review.gluster.org/22213
|
|
|
14f8ab |
> updates: bz#1193929
|
|
|
14f8ab |
> Change-Id: I347de62755100cd69e3cf341434767ae23fd1ba4
|
|
|
14f8ab |
> Signed-off-by: Csaba Henk <csaba@redhat.com>
|
|
|
14f8ab |
|
|
|
14f8ab |
BUG: 1821743
|
|
|
14f8ab |
Change-Id: I0088f804bca215152e7ca2c490402c11f7b5333a
|
|
|
14f8ab |
Signed-off-by: Csaba Henk <csaba@redhat.com>
|
|
|
14f8ab |
Reviewed-on: https://code.engineering.redhat.com/gerrit/216158
|
|
|
14f8ab |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
14f8ab |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
14f8ab |
---
|
|
|
14f8ab |
tests/features/flock_interrupt.t | 10 +++++-----
|
|
|
14f8ab |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/tests/features/flock_interrupt.t b/tests/features/flock_interrupt.t
|
|
|
14f8ab |
index 8603b65..964a4bc 100644
|
|
|
14f8ab |
--- a/tests/features/flock_interrupt.t
|
|
|
14f8ab |
+++ b/tests/features/flock_interrupt.t
|
|
|
14f8ab |
@@ -22,12 +22,12 @@ EXPECT 'Started' volinfo_field $V0 'Status';
|
|
|
14f8ab |
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0;
|
|
|
14f8ab |
TEST touch $M0/testfile;
|
|
|
14f8ab |
|
|
|
14f8ab |
-function flock_interrupt {
|
|
|
14f8ab |
- flock $MO/testfile sleep 3 & flock -w 1 $M0/testfile true;
|
|
|
14f8ab |
- echo ok;
|
|
|
14f8ab |
-}
|
|
|
14f8ab |
+echo > got_lock
|
|
|
14f8ab |
+flock $M0/testfile sleep 6 & { sleep 0.3; flock -w 2 $M0/testfile true; echo ok > got_lock; } &
|
|
|
14f8ab |
|
|
|
14f8ab |
-EXPECT_WITHIN 2 ok flock_interrupt;
|
|
|
14f8ab |
+EXPECT_WITHIN 4 ok cat got_lock;
|
|
|
14f8ab |
|
|
|
14f8ab |
## Finish up
|
|
|
14f8ab |
+sleep 7;
|
|
|
14f8ab |
+rm -f got_lock;
|
|
|
14f8ab |
cleanup;
|
|
|
14f8ab |
--
|
|
|
14f8ab |
1.8.3.1
|
|
|
14f8ab |
|