Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

I try the Monitoring-Availability-0.38 compiler for AIX with perl v5.8.8, #1

Open
cjt74392 opened this Issue September 03, 2012 · 3 comments

2 participants

cjt74392 Sven Nierlein
cjt74392

I try the Monitoring-Availability-0.38 compiler for AIX with perl v5.8.8,
time problems ?

t/34-timeperiods...........................................NOK 29/30# at t/00_test_utils.pm line 45.

Structures begin differing at:

$got->{start} = '2010-01-08 23:05:00'

$expected->{start} = '2010-01-09 00:05:00'

got:

$VAR1 = {

'plugin_output' => 'Normal program termination',

'duration' => '0d 0h 0m 0s+',

'class' => 'INDETERMINATE',

'type' => 'PROGRAM END',

'end' => '2010-01-08 23:05:00',

'start' => '2010-01-08 23:05:00'

};

#

but expected:

$VAR1 = {

'plugin_output' => 'Normal program termination',

'type' => 'PROGRAM END',

'class' => 'INDETERMINATE',

'duration' => '0d 0h 0m 0s+',

'start' => '2010-01-09 00:05:00',

'end' => '2010-01-09 00:05:00'

};

Looks like you failed 21 tests of 30.

t/34-timeperiods...........................................dubious
Test returned status 21 (wstat 5376, 0x1500)
DIED. FAILED tests 4-6, 8-13, 17-19, 21-29
Failed 21/30 tests, 30.00% okay
t/35-Monitoring-Availability-nologs........................ok
t/92_clean_debug...........................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.
t/92_todo..................................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.
t/93-manifest..............................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.
t/97-Pod...................................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.
t/98-Pod-Coverage..........................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.
t/99-Perl-Critic...........................................skipped
all skipped: Author test. Set $ENV{TEST_AUTHOR} to a true value to run.

Failed Test Stat Wstat Total Fail List of Failed

t/30-Monitoring-Availability-host_with_do 9 2304 14 9 4-6 8-13
t/31-Monitoring-Availability-host_with_se 14 3584 19 14 4 6-18
t/32-Monitoring-Availability-service.t 13 3328 18 13 4-8 10-17
t/33-Monitoring-Availability-service_ok_l 52 13312 63 52 4-7 9-20 23-27
29-41 44-48
50-62
t/34-Monitoring-Availability-breakdown.t 2 512 4 2 3-4
t/34-timeperiods.t 21 5376 30 21 4-6 8-13 17-19
21-29
6 tests skipped.
Failed 6/24 test scripts. 111/242 subtests failed.
Files=24, Tests=242, 3 wallclock secs ( 2.37 cusr + 0.47 csys = 2.84 CPU)
Failed 6/24 test programs. 111/242 subtests failed.
make: 1254-004 The error code from the last command is 255.

Stop.
NIERLEIN/Monitoring-Availability-0.38.tar.gz
/usr/bin/make test -- NOT OK

Sven Nierlein
Owner

The tests rely on the timezone of your host. How you you set a Timezone on AIX?
Currently the tests use:
$ENV{'TZ'} = "CET";
POSIX::tzset();

cjt74392

AIX 5.3

I set TZ = TSAI-8 (as GMT+8 ) and daylight saveing Time= No
http://www-01.ibm.com/support/docview.wss?uid=isg3T1000252

cjt74392

I guess the problem may occur in DST time

Time::Local
Ambiguous Local Times (DST)
Because of DST changes, there are many time zones where the same local time occurs for two different GMT times on the same day. For example, in the "Europe/Paris" time zone, the local time of 2001-10-28 02:30:00 can represent either 2001-10-28 00:30:00 GMT, or 2001-10-28 01:30:00 GMT.
When given an ambiguous local time, the timelocal() function should always return the epoch for the earlier of the two possible GMT times.
Non-Existent Local Times (DST)
When a DST change causes a locale clock to skip one hour forward, there will be an hour's worth of local times that don't exist. Again, for the "Europe/Paris" time zone, the local clock jumped from 2001-03-25 01:59:59 to 2001-03-25 03:00:00.
If the timelocal() function is given a non-existent local time, it will simply return an epoch value for the time one hour later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.