ntdll/tests: Skip some tests on Windows Vista.
This commit is contained in:
parent
e4bd0d889e
commit
06a14de18b
@ -330,9 +330,21 @@ static void test_RtlUniform(void)
|
|||||||
seed = 2;
|
seed = 2;
|
||||||
expected = seed * 0xffffffed + 0x7fffffc3;
|
expected = seed * 0xffffffed + 0x7fffffc3;
|
||||||
result = pRtlUniform(&seed);
|
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,
|
ok(result == expected,
|
||||||
"RtlUniform(&seed (seed == 2)) returns %x, expected %x\n",
|
"RtlUniform(&seed (seed == 2)) returns %x, expected %x\n",
|
||||||
result, expected);
|
result, expected);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* More tests show that if seed is odd the result must be incremented by 1:
|
* 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;
|
result_expected = 0x320a1743;
|
||||||
seed_expected =0x44b;
|
seed_expected =0x44b;
|
||||||
result = pRtlRandom(&seed);
|
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,
|
ok(result == result_expected,
|
||||||
"pRtlRandom(&seed (seed == 0)) returns %x, expected %x\n",
|
"pRtlRandom(&seed (seed == 0)) returns %x, expected %x\n",
|
||||||
result, result_expected);
|
result, result_expected);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user