summaryrefslogtreecommitdiff
path: root/testsuite/date/date-R-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/date/date-R-works')
-rw-r--r--testsuite/date/date-R-works9
1 files changed, 8 insertions, 1 deletions
diff --git a/testsuite/date/date-R-works b/testsuite/date/date-R-works
index 34cd735..d056344 100644
--- a/testsuite/date/date-R-works
+++ b/testsuite/date/date-R-works
@@ -1 +1,8 @@
-test x"`date -R`" = x"`busybox date -R`"
+dt1="`date -R`"
+# Wait for the start of next second
+dt="$dt1"
+while test x"$dt" = x"$dt1"; do
+ dt="`date -R`"
+done
+
+test x"$dt" = x"`busybox date -R`"