Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/date/date-works-1

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 42  test x"$dt" = x"Jan 23 11:33:00" Line 42  test x"$dt" = x"Jan 23 11:33:00"
42    
43  # date (GNU coreutils) 6.10 reports:  # date (GNU coreutils) 6.10 reports:
44  # date: invalid date '012311332000'  # date: invalid date '012311332000'
45  dt=`busybox date -d 012311332000 +%c`  dt=`busybox date -d 200001231133 +%c`
46  test x"$dt" = x"Sun Jan 23 11:33:00 2000"  test x"$dt" = x"Sun Jan 23 11:33:00 2000"
47    
48  # date (GNU coreutils) 6.10 reports:  # date (GNU coreutils) 6.10 reports:
49  # date: invalid date '012311332000'  # date: invalid date '012311332000'
50  dt=`busybox date -d 012311332000.30 +%c`  dt=`busybox date -d 200001231133.30 +%c`
51  test x"$dt" = x"Sun Jan 23 11:33:30 2000"  test x"$dt" = x"Sun Jan 23 11:33:30 2000"
52    
53  lcbbd="LC_ALL=C busybox date"  lcbbd="LC_ALL=C busybox date"
# Line 126  test x"$res" = xOK Line 126  test x"$res" = xOK
126    
127  # This should error out (by showing usage text). Testing for that  # This should error out (by showing usage text). Testing for that
128  dt=`busybox date -d 012311332000.30 %+c 2>&1 | head -n 1`  dt=`busybox date -d 012311332000.30 %+c 2>&1 | head -n 1`
129  test x"${dt#BusyBox * multi-call binary}" = x  test x"${dt##BusyBox * multi-call binary*}" = x""

Legend:
Removed from v.983  
changed lines
  Added in v.984