summaryrefslogtreecommitdiff
path: root/test/testtime.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2002-12-19 19:55:11 +0000
committerRyan Bloom <rbb@apache.org>2002-12-19 19:55:11 +0000
commitaf2899b6bb6c4e29fb716b2525edc0e91a426c7f (patch)
tree21b1eb0919ef7d1062d76bbf4717cd6acd8c5f49 /test/testtime.c
parentc154f3248efb0b544d7a3ca84f24fb2da827767c (diff)
downloadapr-af2899b6bb6c4e29fb716b2525edc0e91a426c7f.tar.gz
Make sure that when we print the string in test_localstr we get the
time in the PST timezone. This way, we can be sure that the test will succeed against the hard-coded string, which is in PST. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64197 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testtime.c')
-rw-r--r--test/testtime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testtime.c b/test/testtime.c
index e68f3ae70..c298da8db 100644
--- a/test/testtime.c
+++ b/test/testtime.c
@@ -129,6 +129,10 @@ static void test_localstr(CuTest *tc)
if (rv == APR_ENOTIMPL) {
CuNotImpl(tc, "apr_time_exp_lt");
}
+ /* Force us into PST timezone. This is the only way the test will
+ * succeed.
+ */
+ xt.tm_gmtoff = -25200;
CuAssertTrue(tc, rv == APR_SUCCESS);
CuAssertStrEquals(tc, "2002-08-14 12:05:36.186711 -25200 [257 Sat] DST",
print_time(p, &xt));