Hello,
I have downloaded and built "sh-utils" which fails doing 'make
check' on the date tests. I repeated the date test from ./tests/date having
set the environment variable VERBOSE to 1. The output was:-
(hilda)# date-tests
testing program: ../../src/date
date (GNU sh-utils) 2.0
Written by David MacKenzie.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
passed 1(LANG=C TZ=UTC)
passed 2(LANG=C TZ=UTC)
passed 3(LANG=C TZ=UTC)
passed 4(LANG=C TZ=UTC)
passed 5(LANG=C TZ=UTC)
passed 6(LANG=C TZ=UTC)
passed 7(LANG=C TZ=UTC)
passed 8(LANG=C TZ=UTC)
passed 9(LANG=C TZ=UTC)
passed leap-1(LANG=C TZ=UTC)
passed U95-1(LANG=C TZ=UTC)
passed U95-2(LANG=C TZ=UTC)
passed U95-3(LANG=C TZ=UTC)
passed U92-1(LANG=C TZ=UTC)
passed U92-2(LANG=C TZ=UTC)
passed U92-3(LANG=C TZ=UTC)
passed V92-1(LANG=C TZ=UTC)
passed V92-2(LANG=C TZ=UTC)
passed V92-3(LANG=C TZ=UTC)
passed W92-1(LANG=C TZ=UTC)
passed W92-2(LANG=C TZ=UTC)
passed W92-3(LANG=C TZ=UTC)
passed millen-1(LANG=C TZ=UTC)
passed rel-0(LANG=C TZ=UTC)
passed rel-1a(LANG=C TZ=UTC)
passed rel-1b(LANG=C TZ=UTC)
passed rel-2a(LANG=C TZ=UTC)
passed rel-2b(LANG=C TZ=UTC)
passed rel-2c(LANG=C TZ=UTC)
passed rel-2d(LANG=C TZ=UTC)
passed rel-2e(LANG=C TZ=UTC)
passed rel-2f(LANG=C TZ=UTC)
passed rel-2g(LANG=C TZ=UTC)
passed rel-3a(LANG=C TZ=UTC)
passed next-s(LANG=C TZ=UTC)
passed next-m(LANG=C TZ=UTC)
passed next-h(LANG=C TZ=UTC)
passed next-d(LANG=C TZ=UTC)
passed next-w(LANG=C TZ=UTC)
passed next-mo(LANG=C TZ=UTC)
passed next-y(LANG=C TZ=UTC)
Test utc-0(TZ=UTC+4) failed: files utc-0.O and ./utc-0.X differ
passed utc-0a(LANG=C TZ=UTC)
Test utc-1(TZ=UTC+1) failed: files utc-1.O and ./utc-1.X differ
passed utc-1a(LANG=C TZ=UTC)
Test date2sec-0(TZ=UTC+2) failed: files date2sec-0.O and ./date2sec-0.X
differ
passed date2sec-0a(LANG=C TZ=UTC)
passed date2sec-1(LANG=C TZ=UTC)
passed sec2date-0(LANG=C TZ=UTC)
Failed 3 tests.
(hilda)#
It fails on the tests with the TZ variable set to UTC+ something. I have
tried doing a few manual test an the results are:-
(hilda)# echo $TZ
GMT0
(hilda)# date
Mon Jan 31 10:39:13 GMT 2000
(hilda)# TZ=UTC date
Mon Jan 31 10:39:22 UTC 2000
(hilda)# TZ=UTC4 date
Mon Jan 31 06:39:36 UTC 2000
(hilda)# TZ=UTC+4 date
Mon Jan 31 10:39:49 UTC 2000
(hilda)# TZ=UTC-4 date
Mon Jan 31 14:40:00 UTC 2000
(hilda)#
The results confuse me:-
1) I thought setting TZ=UTC would cause the time to change.
2) I was expecting TZ=UTC4 and TZ=UTC+4 to add four hours, 4 took 4 hours
off, and +4 was ignored.
3) I was expecting TZ=UTC-4 to take 4 hours off, not add 4 hours on.
Will explain to me what is going on?
My configure options where '-disable-nls'. Configure picked up the host as
m68k-motorola-sysv which is correct. This is an old flavour of System V R3
operating system.
Please find attached 'configure.log' and 'make.log' which are log files of
the configure and make commands,
regards
Chris Beere
<<configure.log>> <<make.log>>
Phone: +44 (0) 1923 435817
Fax: +44 (0) 1923 435370
Email: [EMAIL PROTECTED]
configure.log
make.log