summaryrefslogtreecommitdiff
path: root/test/testtime.c
diff options
context:
space:
mode:
authorBranko Čibej <brane@apache.org>2001-06-30 12:02:38 +0000
committerBranko Čibej <brane@apache.org>2001-06-30 12:02:38 +0000
commit7f302880e444e0dbf42cf660d78472c4e50b0103 (patch)
tree5c16de3b4e3c23e84730dfc40370816fa83c7365 /test/testtime.c
parentff5c481f7cda4739a30753ef1402a49c8f056a18 (diff)
downloadapr-7f302880e444e0dbf42cf660d78472c4e50b0103.tar.gz
Added another test for apr_explode_gmt/apr_implode_gmt combinations.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testtime.c')
-rw-r--r--test/testtime.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/testtime.c b/test/testtime.c
index e81af28a7..fdb247577 100644
--- a/test/testtime.c
+++ b/test/testtime.c
@@ -99,6 +99,21 @@ int main(void)
}
printf("OK\n");
+ STD_TEST_NEQ(" apr_implode_gmt (GMT)",
+ apr_implode_gmt(&imp, &xt))
+
+ printf("%-60s", " checking GMT explode == GMT implode");
+ if (imp != now) {
+ printf("mismatch\n"
+ "\t\tapr_now() %" APR_INT64_T_FMT "\n"
+ "\t\tapr_implode() returned %" APR_INT64_T_FMT "\n"
+ "\t\terror delta was %" APR_TIME_T_FMT "\n"
+ "\t\tshould have been 0\n",
+ now, imp, imp-now);
+ exit(-1);
+ }
+ printf("OK\n");
+
STD_TEST_NEQ(" apr_implode_gmt (localtime)",
apr_implode_gmt(&imp, &xt2))