summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/regression.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/regression.c b/src/test/regression.c
index 6c80a8cf..fc2db8ea 100644
--- a/src/test/regression.c
+++ b/src/test/regression.c
@@ -4674,6 +4674,10 @@ void test_timezone_from_builtin(void)
char *strcomp, *tzidprefix, *prevslash = NULL, *prevprevslash = NULL, *p;
size_t len;
+ /* Builtins are not enabled, zone loading will fail. */
+ if (!icaltimezone_get_builtin_tzdata())
+ return;
+
zone = icaltimezone_get_builtin_timezone("America/New_York");
tzidprefix = strdup(icaltimezone_get_tzid (zone));
p = tzidprefix;