busybox/testsuite/date/date-R-works

14 lines
638 B
Plaintext
Raw Normal View History

# When different date's use time() and clock_gettime(),
# seconds transition may not happen at _exactly_ the same moment.
# Therefore we try it several times.
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
false