瀏覽代碼

Disable date string parsing test for NO_CACHING.

Christian Mauderer 9 年之前
父節點
當前提交
ad10b1cc98
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/private.c

+ 2 - 2
test/private.c

@@ -533,9 +533,9 @@ START_TEST(test_mask_data)
 }
 END_TEST
 
-
 START_TEST(test_parse_date_string)
 {
+#if !defined(NO_CACHING)
 	time_t now = time(0);
 	struct tm *tm = gmtime(&now);
 	char date[64] = {0};
@@ -581,10 +581,10 @@ START_TEST(test_parse_date_string)
 		        tm->tm_sec);
 		ck_assert_uint_eq((uintmax_t)parse_date_string(date), (uintmax_t)now);
 	}
+#endif
 }
 END_TEST
 
-
 Suite *
 make_private_suite(void)
 {