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