View | Details | Raw Unified | Return to bug 2977
Collapse All | Expand All

(-)a/unittests/conversion/tests.c (+2 lines)
Lines 40-45 tests(void) Link Here
40
	ASSERT_LONG_EQ(convtime("-9d"), -1);
40
	ASSERT_LONG_EQ(convtime("-9d"), -1);
41
	
41
	
42
	/* overflow */
42
	/* overflow */
43
	snprintf(buf, sizeof buf, "%llu", (unsigned long long)LONG_MAX);
44
	ASSERT_LONG_EQ(convtime(buf), -1);
43
	snprintf(buf, sizeof buf, "%llu", (unsigned long long)LONG_MAX + 1);
45
	snprintf(buf, sizeof buf, "%llu", (unsigned long long)LONG_MAX + 1);
44
	ASSERT_LONG_EQ(convtime(buf), -1);
46
	ASSERT_LONG_EQ(convtime(buf), -1);
45
47

Return to bug 2977