Subject: | make test fails |
When running make test, I get the following result:
=====================================8<-----------------------
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/001_basic.t
t/002_config.t t/003_config.t
t/001_basic.....ok
t/002_config....ok 1/0
# Failed test 'All object properties match at rev: 2'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:12 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:12 -0500 (Mon, 26 Dec 2005)'
t/002_config....ok 3/0
# Failed test 'All object properties match at rev: 5'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:14 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:14 -0500 (Mon, 26 Dec 2005)'
t/002_config....NOK 5/0
# Failed test 'All object properties match at rev: 6'
t/002_config....NOK 6/0# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:15 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:15 -0500 (Mon, 26 Dec 2005)'
# Looks like you failed 3 tests of 7.
t/002_config....dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 2, 5-6
Failed 3/7 tests, 57.14% okay
t/003_config....ok 4/0
# Failed test 'All object properties match at rev: 8'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:16 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:16 -0500 (Mon, 26 Dec 2005)'
t/003_config....NOK 8/0
# Failed test 'All object properties match at rev: 9'
t/003_config....NOK 9/0# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:17 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:17 -0500 (Mon, 26 Dec 2005)'
# Failed test 'All object properties match at rev: 10'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:17 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:17 -0500 (Mon, 26 Dec 2005)'
t/003_config....NOK 10/0
# Failed test 'All object properties match at rev: 11'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:20 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:20 -0500 (Mon, 26 Dec 2005)'
t/003_config....NOK 11/0
# Failed test 'All object properties match at rev: 12'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{date} = '2005-12-26 17:38:22 +0000 (Mon, 26 Dec 2005)'
# $expected->[0]{date} = '2005-12-26 12:38:22 -0500 (Mon, 26 Dec 2005)'
t/003_config....NOK 12/0# Looks like you failed 5 tests of 12.
t/003_config....dubious
Test returned status 5 (wstat 1280, 0x500)
DIED. FAILED tests 8-12
Failed 5/12 tests, 58.33% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/002_config.t 3 768 7 3 2 5-6
t/003_config.t 5 1280 12 5 8-12
Failed 2/3 test scripts. 8/20 subtests failed.
Files=3, Tests=20, 5 wallclock secs ( 4.11 cusr + 0.67 csys = 4.78 CPU)
Failed 2/3 test programs. 8/20 subtests failed.
make: *** [test_dynamic] Error 5
---------------------------->8===============================
There's a workaround for this, by running the test as follows:
$ USER=jpeacock TZ="EST5EDT" make test
.... at which one gets another test error:
==============8<---------------------------------------------
$ TZ="EST5EDT" make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/001_basic.t
t/002_config.t t/003_config.t
t/001_basic.....ok
t/002_config....ok 1/0
# Failed test 'All object properties match at rev: 2'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{from} = 'jpeacock@example.com'
# $expected->[0]{from} = 'sjn@example.com'
t/002_config....ok 3/0
# Failed test 'All object properties match at rev: 5'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
t/002_config....NOK 5/0
# Failed test 'All object properties match at rev: 6'
t/002_config....NOK 6/0# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{from} = 'jpeacock@example.com'
# $expected->[0]{from} = 'sjn@example.com'
# Looks like you failed 3 tests of 7.
t/002_config....dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 2, 5-6
Failed 3/7 tests, 57.14% okay
t/003_config....ok 5/0
# Failed test 'All object properties match at rev: 8'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
t/003_config....NOK 8/0
# Failed test 'All object properties match at rev: 9'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
t/003_config....NOK 9/0
# Failed test 'All object properties match at rev: 10'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
t/003_config....NOK 10/0
# Failed test 'All object properties match at rev: 11'
t/003_config....NOK 11/0# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
# Failed test 'All object properties match at rev: 12'
# in t/coretests.pm at line 85.
# Structures begin differing at:
# $got->[0]{user} = 'jpeacock'
# $expected->[0]{user} = 'sjn'
t/003_config....NOK 12/0# Looks like you failed 5 tests of 12.
t/003_config....dubious
Test returned status 5 (wstat 1280, 0x500)
DIED. FAILED tests 8-12
Failed 5/12 tests, 58.33% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/002_config.t 3 768 7 3 2 5-6
t/003_config.t 5 1280 12 5 8-12
Failed 2/3 test scripts. 8/20 subtests failed.
Files=3, Tests=20, 4 wallclock secs ( 4.16 cusr + 0.63 csys = 4.79 CPU)
Failed 2/3 test programs. 8/20 subtests failed.
make: *** [test_dynamic] Error 5
=====================================8<------------------------
This error also has a workaround:
$ USER=jpeacock TZ="EST5EDT" make test
Obviously, the error is that the tests shouldn't be dependent on
username or timezone.
Great if you can fix this! :)