1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/util/tests
Andrew Kroeger a32f4dd3cf util:tests: Correct time tests for negative UTC offsets.
All:

Please find attached a patch to fix the timestring and http_timestring
tests on hosts that have a negative UTC offset (west of the Prime Meridian).

Sincerely,
Andrew Kroeger

>From 8a8ca35edccf64aa98f2f3ae1469c4c27db8215e Mon Sep 17 00:00:00 2001
From: Andrew Kroeger <andrew@id10ts.net>
Date: Fri, 4 Sep 2009 01:31:50 -0500
Subject: [PATCH] util:tests: Correct time tests for negative UTC offsets.

The timestring and http_timestring tests were failing on hosts with negative
offsets from UTC.  Due to the timezone offset, the returned values were back in
the year 1969 (before the epoch) and did not match the test patterns.

The correction computes the offset from UTC, and if it is negative that offset
is added onto the value given to the timestring() and http_timestring() calls so
that the returned values fall on 01-Jan-1970 and match the test pattern.
2009-09-05 10:06:29 +10:00
..
data_blob.c Add test for data_blob_string_const_null. 2008-10-13 16:29:19 +02:00
file.c Test maxsize parameter to file_load() as used in Samba 3. 2008-10-13 16:40:27 +02:00
genrand.c Fix broken password quality check 2009-07-19 16:00:19 +02:00
idtree.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
str.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
strlist.c Add extensive tests for str_list function behaviour 2009-05-15 01:50:06 +10:00
time.c util:tests: Correct time tests for negative UTC offsets. 2009-09-05 10:06:29 +10:00