aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 04:54:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 04:54:21 +0200
commit941990f0c5911cccd2bfaa3e0259a312c93f97ef (patch)
tree089a80831264eb83091b89185172c6f96afd3081 /testsuite
parent38dd8aa657d80232d8bbce4ed359af2022f605c7 (diff)
downloadbusybox-w32-941990f0c5911cccd2bfaa3e0259a312c93f97ef.tar.gz
busybox-w32-941990f0c5911cccd2bfaa3e0259a312c93f97ef.tar.bz2
busybox-w32-941990f0c5911cccd2bfaa3e0259a312c93f97ef.zip
correct date testsuite to use compatible format
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/date/date-works4
-rw-r--r--testsuite/date/date-works-14
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/date/date-works b/testsuite/date/date-works
index 0802e887f..901c485ec 100644
--- a/testsuite/date/date-works
+++ b/testsuite/date/date-works
@@ -35,10 +35,10 @@ dt=`busybox date -d 01231133`
35dt=`echo "$dt" | cut -b5-19` 35dt=`echo "$dt" | cut -b5-19`
36test x"$dt" = x"Jan 23 11:33:00" 36test x"$dt" = x"Jan 23 11:33:00"
37 37
38dt=`busybox date -d 012311332000` 38dt=`busybox date -d 200001231133`
39dt=`echo "$dt" | cut -b1-19` 39dt=`echo "$dt" | cut -b1-19`
40test x"$dt" = x"Sun Jan 23 11:33:00" 40test x"$dt" = x"Sun Jan 23 11:33:00"
41 41
42dt=`busybox date -d 012311332000.30` 42dt=`busybox date -d 200001231133.30`
43dt=`echo "$dt" | cut -b1-19` 43dt=`echo "$dt" | cut -b1-19`
44test x"$dt" = x"Sun Jan 23 11:33:30" 44test x"$dt" = x"Sun Jan 23 11:33:30"
diff --git a/testsuite/date/date-works-1 b/testsuite/date/date-works-1
index e318944da..bd984c0be 100644
--- a/testsuite/date/date-works-1
+++ b/testsuite/date/date-works-1
@@ -42,12 +42,12 @@ test x"$dt" = x"Jan 23 11:33:00"
42 42
43# date (GNU coreutils) 6.10 reports: 43# date (GNU coreutils) 6.10 reports:
44# date: invalid date '012311332000' 44# date: invalid date '012311332000'
45dt=`busybox date -d 012311332000 +%c` 45dt=`busybox date -d 200001231133 +%c`
46test x"$dt" = x"Sun Jan 23 11:33:00 2000" 46test x"$dt" = x"Sun Jan 23 11:33:00 2000"
47 47
48# date (GNU coreutils) 6.10 reports: 48# date (GNU coreutils) 6.10 reports:
49# date: invalid date '012311332000' 49# date: invalid date '012311332000'
50dt=`busybox date -d 012311332000.30 +%c` 50dt=`busybox date -d 200001231133.30 +%c`
51test x"$dt" = x"Sun Jan 23 11:33:30 2000" 51test x"$dt" = x"Sun Jan 23 11:33:30 2000"
52 52
53lcbbd="LC_ALL=C busybox date" 53lcbbd="LC_ALL=C busybox date"