ntdll/tests: Skip some tests on Windows Vista.

This commit is contained in:
Paul Vriens 2007-01-09 19:49:26 +01:00 committed by Alexandre Julliard
parent e4bd0d889e
commit 06a14de18b
1 changed files with 23 additions and 0 deletions

View File

@ -330,9 +330,21 @@ static void test_RtlUniform(void)
seed = 2;
expected = seed * 0xffffffed + 0x7fffffc3;
result = pRtlUniform(&seed);
/*
* Windows Vista uses different algorithms, so skip the rest of the tests
* until that is figured out. Trace output for the failures is about 10.5 MB!
*/
if (result == 0x7fffff9f) {
trace("Most likely running on Windows Vista, skipping rest of tests\n");
return;
}
ok(result == expected,
"RtlUniform(&seed (seed == 2)) returns %x, expected %x\n",
result, expected);
/*
* More tests show that if seed is odd the result must be incremented by 1:
*/
@ -616,6 +628,17 @@ static void test_RtlRandom(void)
result_expected = 0x320a1743;
seed_expected =0x44b;
result = pRtlRandom(&seed);
/*
* Windows Vista uses different algorithms, so skip the rest of the tests
* until that is figured out. Trace output for the failures is about 10.5 MB!
*/
if (seed == 0x3fc) {
trace("Most likely running on Windows Vista, skipping rest of tests\n");
return;
}
ok(result == result_expected,
"pRtlRandom(&seed (seed == 0)) returns %x, expected %x\n",
result, result_expected);