aboutsummaryrefslogtreecommitdiff
path: root/testsuite/date/date-R-works
blob: 12f9b96ed7234c8b57d26787c642682f2dd74c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dt1="`date -R`"
# Wait for the start of next second
dt="$dt1"
while test x"$dt" = x"$dt1"; do
    dt="`date -R`"
done

bdt=`busybox date -R`
bdt=`busybox date -R`
bdt=`busybox date -R`
bdt=`busybox date -R`
bdt=`busybox date -R`

# Wtih !FEATURE_DATE_NANO, that is, with time()
# instead of clock_gettime(), seconds transition
# may not happen at _exactly_ the same moment,
# but can be delayed. Several busybox date -R
# invocations above are meant to deal with this.
# (two were enough for me, but I added more just in case).

test x"$dt" = x"$bdt"