shdocvw/tests: Fix test failures on XP SP2 and higher.
This commit is contained in:
parent
49da5031c2
commit
10b2d6db04
|
@ -251,9 +251,10 @@ static void test_ParseURLFromOutsideSourceA(void)
|
|||
len = maxlen-1;
|
||||
dummy = 0;
|
||||
res = pParseURLFromOutsideSourceA(ParseURL_table[i].url, buffer, &len, &dummy);
|
||||
ok( res == 0 && len == ParseURL_table[i].len + 1,
|
||||
"#%d (-1): got %d and %d (expected '0' and %d)\n",
|
||||
i, res, len, ParseURL_table[i].len + 1);
|
||||
/* len includes the terminating 0 on XP SP1 and before, when the buffer is too small */
|
||||
ok( res == 0 && (len == ParseURL_table[i].len || len == ParseURL_table[i].len + 1),
|
||||
"#%d (-1): got %d and %d (expected '0' and %d or %d)\n",
|
||||
i, res, len, ParseURL_table[i].len, ParseURL_table[i].len + 1);
|
||||
|
||||
memset(buffer, '#', sizeof(buffer)-1);
|
||||
buffer[sizeof(buffer)-1] = '\0';
|
||||
|
@ -341,9 +342,10 @@ static void test_ParseURLFromOutsideSourceW(void)
|
|||
len = maxlen - 1;
|
||||
dummy = 0;
|
||||
res = pParseURLFromOutsideSourceW(urlW, bufferW, &len, &dummy);
|
||||
ok( res == 0 && len == ParseURL_table[0].len + 1,
|
||||
"-1: got %d and %d (expected '0' and %d)\n",
|
||||
res, len, ParseURL_table[0].len + 1);
|
||||
/* len includes the terminating 0 on XP SP1 and before, when the buffer is too small */
|
||||
ok( res == 0 && (len == ParseURL_table[0].len || len == ParseURL_table[0].len + 1),
|
||||
"-1: got %d and %d (expected '0' and %d or %d)\n",
|
||||
res, len, ParseURL_table[0].len, ParseURL_table[0].len + 1);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue