From 01b8aa39f750635fb3db5b3ce2e408feced7c23d Mon Sep 17 00:00:00 2001
From: Dominik Loidolt <dominik.loidolt@univie.ac.at>
Date: Fri, 21 Oct 2022 17:31:27 +0200
Subject: [PATCH] fix test for windows

---
 test/cmp_entity/test_cmp_entity.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/cmp_entity/test_cmp_entity.c b/test/cmp_entity/test_cmp_entity.c
index 2122b83..70b5000 100644
--- a/test/cmp_entity/test_cmp_entity.c
+++ b/test/cmp_entity/test_cmp_entity.c
@@ -2562,12 +2562,14 @@ void test_cmp_ent_create_timestamp(void)
 	timestamp = cmp_ent_create_timestamp(NULL);
 	TEST_ASSERT_NOT_EQUAL_INT(0, timestamp);
 
+#if !defined(_WIN32) && !defined(_WIN64)
 	/* test my_timegm function */
 	setenv("TZ", "/etc/localtime", 0);
 	timestamp = cmp_ent_create_timestamp(NULL);
 	TEST_ASSERT_NOT_EQUAL_INT(0, timestamp);
 	TEST_ASSERT_EQUAL_STRING("/etc/localtime", getenv("TZ"));
 	unsetenv("TZ");
+#endif
 
 	/* error cases */
 	/* ts before epoch */
-- 
GitLab