[git commit] correct date testsuite to use compatible format

Denys Vlasenko vda.linux at googlemail.com
Sat Jul 18 02:54:21 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=941990f0c5911cccd2bfaa3e0259a312c93f97ef
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master


Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/date/date-works   |    4 ++--
 testsuite/date/date-works-1 |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testsuite/date/date-works b/testsuite/date/date-works
index 0802e88..901c485 100644
--- a/testsuite/date/date-works
+++ b/testsuite/date/date-works
@@ -35,10 +35,10 @@ dt=`busybox date -d 01231133`
 dt=`echo "$dt" | cut -b5-19`
 test x"$dt" = x"Jan 23 11:33:00"
 
-dt=`busybox date -d 012311332000`
+dt=`busybox date -d 200001231133`
 dt=`echo "$dt" | cut -b1-19`
 test x"$dt" = x"Sun Jan 23 11:33:00"
 
-dt=`busybox date -d 012311332000.30`
+dt=`busybox date -d 200001231133.30`
 dt=`echo "$dt" | cut -b1-19`
 test x"$dt" = x"Sun Jan 23 11:33:30"
diff --git a/testsuite/date/date-works-1 b/testsuite/date/date-works-1
index e318944..bd984c0 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"
 
 # date (GNU coreutils) 6.10 reports:
 #	date: invalid date '012311332000'
-dt=`busybox date -d 012311332000 +%c`
+dt=`busybox date -d 200001231133 +%c`
 test x"$dt" = x"Sun Jan 23 11:33:00 2000"
 
 # date (GNU coreutils) 6.10 reports:
 #	date: invalid date '012311332000'
-dt=`busybox date -d 012311332000.30 +%c`
+dt=`busybox date -d 200001231133.30 +%c`
 test x"$dt" = x"Sun Jan 23 11:33:30 2000"
 
 lcbbd="LC_ALL=C busybox date"
-- 
1.6.3.3


More information about the busybox-cvs mailing list