Commit 61f82d6d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Mark gmtime32 tests with negative argument as broken on win8.

parent 5ffeb458
......@@ -109,7 +109,7 @@ static void test_gmtime(void)
gmt = -1;
gmt_tm = p_gmtime32(&gmt);
ok(gmt_tm == NULL, "gmt_tm != NULL\n");
ok(gmt_tm==NULL || broken(gmt_tm->tm_year==70 && gmt_tm->tm_sec<0), "gmt_tm != NULL\n");
gmt = valid = 0;
gmt_tm = p_gmtime32(&gmt);
......@@ -181,9 +181,12 @@ static void test_gmtime(void)
errno = 0;
gmt = -1;
err = p_gmtime32_s(&gmt_tm_s, &gmt);
ok(err == EINVAL, "err = %d\n", err);
ok(errno == EINVAL, "errno = %d\n", errno);
ok(gmt_tm_s.tm_year == -1, "tm_year = %d\n", gmt_tm_s.tm_year);
ok(gmt_tm_s.tm_year==-1 || broken(gmt_tm_s.tm_year==70 && gmt_tm->tm_sec<0),
"tm_year = %d\n", gmt_tm_s.tm_year);
if(gmt_tm_s.tm_year == -1) {
ok(err==EINVAL, "err = %d\n", err);
ok(errno==EINVAL, "errno = %d\n", errno);
}
}
static void test_mktime(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment