summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2019-05-16 18:37:48 +0530
committerSanju Rakonde <srakonde@redhat.com>2019-05-16 18:45:56 +0530
commit836e5b6b76ee74a486b6d41c4a2d3de91e4ad2c1 (patch)
treedd91c4f37ff3bb29eb0afec843737480708c436c /tests
parent7ead11711181104b23c004e0cd5e9e3c3c981a4f (diff)
tests: change usleep() to sleep()
While running a test case the following warning messages are seen on the display. To avoid suh warnings changing usleep() to sleep(). warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.25" instead... updates: bz#1193929 Signed-off-by: Sanju Rakonde <srakonde@redhat.com> Change-Id: I48b79ede1c70b101f654635dd4cc83e50ea55b73
Diffstat (limited to 'tests')
-rw-r--r--tests/include.rc4
-rw-r--r--tests/volume.rc2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 9987ed10e83..bf90e1945b3 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -134,7 +134,7 @@ _GFS () {
touch $mount_point/xy_zzy 2> /dev/null && break
i=$((i+1))
[ $i -lt 100 ] || break
- usleep 100000
+ sleep 0.1
done
rm -f $mount_point/xy_zzy
return $mount_ret
@@ -378,7 +378,7 @@ function _EXPECT_WITHIN()
if [[ "$a" =~ $e ]]; then
break;
fi
- usleep 250000;
+ sleep 0.25;
EW_RETRIES=$((EW_RETRIES+1))
done
diff --git a/tests/volume.rc b/tests/volume.rc
index 71d7fed9c87..f652a5b0099 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -131,7 +131,7 @@ function wait_statedump_ready {
return
fi
fi
- usleep 100000
+ sleep 0.1
done
echo "nostatedump"