Opened 15 years ago

Closed 15 years ago

#356 closed defect (fixed)

date test program fails

Reported by: Jari Häkkinen Owned by: Peter Johansson
Priority: major Milestone: svndigest 0.6.7
Component: test Version: 0.6.6
Keywords: Cc:

Description

Running 'make check' fails on 0.6 branch. It may have something to do with shifting between standard time and daylight saving time.

# cd test
# ./date -v
date("%H:%M") returns: 16:40
expected '15:40'

Change History (4)

comment:1 Changed 15 years ago by Peter Johansson

The problem lies in Date::svntime.

There is a call to tm_gmtoff that on my computer is set to -4 while I would expect -5 having NYC time on my Mac. The discrepancy explains the failure, but need to look into <ctime> to come up with a fix.

comment:2 Changed 15 years ago by Peter Johansson

A better idea is likely to look into the trunk. The corresponding test doesn't failure in trunk.

comment:3 Changed 15 years ago by Peter Johansson

Owner: changed from Jari Häkkinen to Peter Johansson
Status: newassigned

comment:4 Changed 15 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [698]) fixes #356. This bug was fixed in trunk in r503 and r504.

Note: See TracTickets for help on using tickets.