aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/date/date-R-works32
-rwxr-xr-xtestsuite/mount.tests2
2 files changed, 13 insertions, 21 deletions
diff --git a/testsuite/date/date-R-works b/testsuite/date/date-R-works
index 12f9b96ed..81378cc69 100644
--- a/testsuite/date/date-R-works
+++ b/testsuite/date/date-R-works
@@ -1,21 +1,13 @@
1dt1="`date -R`" 1# When different date's use time() and clock_gettime(),
2# Wait for the start of next second 2# seconds transition may not happen at _exactly_ the same moment.
3dt="$dt1" 3# Therefore we try it several times.
4while test x"$dt" = x"$dt1"; do
5 dt="`date -R`"
6done
7 4
8bdt=`busybox date -R` 5test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
9bdt=`busybox date -R` 6test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
10bdt=`busybox date -R` 7test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
11bdt=`busybox date -R` 8test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
12bdt=`busybox date -R` 9test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
13 10test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
14# Wtih !FEATURE_DATE_NANO, that is, with time() 11test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
15# instead of clock_gettime(), seconds transition 12test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
16# may not happen at _exactly_ the same moment, 13false
17# but can be delayed. Several busybox date -R
18# invocations above are meant to deal with this.
19# (two were enough for me, but I added more just in case).
20
21test x"$dt" = x"$bdt"
diff --git a/testsuite/mount.tests b/testsuite/mount.tests
index 9ddd58795..c5891be83 100755
--- a/testsuite/mount.tests
+++ b/testsuite/mount.tests
@@ -46,7 +46,7 @@ rm mount.image1m
46 46
47 47
48# Bug: mount.shared1 directory shows no files (has to show files a and b) 48# Bug: mount.shared1 directory shows no files (has to show files a and b)
49optional FEATURE_LS_RECURSIVE 49optional FEATURE_LS_RECURSIVE FEATURE_LS_SORTFILES
50testing "mount bind+rshared" "\ 50testing "mount bind+rshared" "\
51mkdir -p mount.dir mount.shared1 mount.shared2 51mkdir -p mount.dir mount.shared1 mount.shared2
52touch mount.dir/a mount.dir/b 52touch mount.dir/a mount.dir/b