Check if a function exists before testing it.
This commit is contained in:
parent
06464999f1
commit
73593d7eed
|
@ -295,7 +295,10 @@ START_TEST(env)
|
||||||
pRtlSetEnvironmentVariable = (void*)GetProcAddress(mod, "RtlSetEnvironmentVariable");
|
pRtlSetEnvironmentVariable = (void*)GetProcAddress(mod, "RtlSetEnvironmentVariable");
|
||||||
pRtlExpandEnvironmentStrings_U = (void*)GetProcAddress(mod, "RtlExpandEnvironmentStrings_U");
|
pRtlExpandEnvironmentStrings_U = (void*)GetProcAddress(mod, "RtlExpandEnvironmentStrings_U");
|
||||||
|
|
||||||
|
if (pRtlQueryEnvironmentVariable_U)
|
||||||
testQuery();
|
testQuery();
|
||||||
|
if (pRtlSetEnvironmentVariable)
|
||||||
testSet();
|
testSet();
|
||||||
|
if (pRtlExpandEnvironmentStrings_U)
|
||||||
testExpand();
|
testExpand();
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,9 +421,10 @@ START_TEST(large_int)
|
||||||
{
|
{
|
||||||
InitFunctionPtrs();
|
InitFunctionPtrs();
|
||||||
|
|
||||||
|
if (pRtlExtendedMagicDivide)
|
||||||
test_RtlExtendedMagicDivide();
|
test_RtlExtendedMagicDivide();
|
||||||
if (pRtlInt64ToUnicodeString != NULL) {
|
if (pRtlInt64ToUnicodeString)
|
||||||
test_RtlInt64ToUnicodeString();
|
test_RtlInt64ToUnicodeString();
|
||||||
} /* if */
|
if (pRtlLargeIntegerToChar)
|
||||||
test_RtlLargeIntegerToChar();
|
test_RtlLargeIntegerToChar();
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,7 +234,10 @@ START_TEST(path)
|
||||||
pRtlIsDosDeviceName_U = (void *)GetProcAddress(mod,"RtlIsDosDeviceName_U");
|
pRtlIsDosDeviceName_U = (void *)GetProcAddress(mod,"RtlIsDosDeviceName_U");
|
||||||
pRtlOemStringToUnicodeString = (void *)GetProcAddress(mod,"RtlOemStringToUnicodeString");
|
pRtlOemStringToUnicodeString = (void *)GetProcAddress(mod,"RtlOemStringToUnicodeString");
|
||||||
pRtlIsNameLegalDOS8Dot3 = (void *)GetProcAddress(mod,"RtlIsNameLegalDOS8Dot3");
|
pRtlIsNameLegalDOS8Dot3 = (void *)GetProcAddress(mod,"RtlIsNameLegalDOS8Dot3");
|
||||||
|
if (pRtlDetermineDosPathNameType_U)
|
||||||
test_RtlDetermineDosPathNameType();
|
test_RtlDetermineDosPathNameType();
|
||||||
|
if (pRtlIsDosDeviceName_U)
|
||||||
test_RtlIsDosDeviceName();
|
test_RtlIsDosDeviceName();
|
||||||
|
if (pRtlIsNameLegalDOS8Dot3)
|
||||||
test_RtlIsNameLegalDOS8Dot3();
|
test_RtlIsNameLegalDOS8Dot3();
|
||||||
}
|
}
|
||||||
|
|
|
@ -827,18 +827,28 @@ START_TEST(rtl)
|
||||||
{
|
{
|
||||||
InitFunctionPtrs();
|
InitFunctionPtrs();
|
||||||
|
|
||||||
|
if (pRtlCompareMemory)
|
||||||
test_RtlCompareMemory();
|
test_RtlCompareMemory();
|
||||||
|
if (pRtlCompareMemoryUlong)
|
||||||
test_RtlCompareMemoryUlong();
|
test_RtlCompareMemoryUlong();
|
||||||
|
if (pRtlMoveMemory)
|
||||||
test_RtlMoveMemory();
|
test_RtlMoveMemory();
|
||||||
|
if (pRtlFillMemory)
|
||||||
test_RtlFillMemory();
|
test_RtlFillMemory();
|
||||||
|
if (pRtlFillMemoryUlong)
|
||||||
test_RtlFillMemoryUlong();
|
test_RtlFillMemoryUlong();
|
||||||
|
if (pRtlZeroMemory)
|
||||||
test_RtlZeroMemory();
|
test_RtlZeroMemory();
|
||||||
if (pRtlUlonglongByteSwap) {
|
if (pRtlUlonglongByteSwap)
|
||||||
test_RtlUlonglongByteSwap();
|
test_RtlUlonglongByteSwap();
|
||||||
} /* if */
|
if (pRtlUniform)
|
||||||
test_RtlUniform();
|
test_RtlUniform();
|
||||||
|
if (pRtlRandom)
|
||||||
test_RtlRandom();
|
test_RtlRandom();
|
||||||
|
if (pRtlAreAllAccessesGranted)
|
||||||
test_RtlAreAllAccessesGranted();
|
test_RtlAreAllAccessesGranted();
|
||||||
|
if (pRtlAreAnyAccessesGranted)
|
||||||
test_RtlAreAnyAccessesGranted();
|
test_RtlAreAnyAccessesGranted();
|
||||||
|
if (pRtlComputeCrc32)
|
||||||
test_RtlComputeCrc32();
|
test_RtlComputeCrc32();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1075,13 +1075,20 @@ START_TEST(string)
|
||||||
{
|
{
|
||||||
InitFunctionPtrs();
|
InitFunctionPtrs();
|
||||||
|
|
||||||
|
if (p_ultoa)
|
||||||
test_ulongtoa();
|
test_ulongtoa();
|
||||||
|
if (p_ui64toa)
|
||||||
test_ulonglongtoa();
|
test_ulonglongtoa();
|
||||||
|
if (p_atoi64)
|
||||||
test_atoi64();
|
test_atoi64();
|
||||||
|
if (p_ultow)
|
||||||
test_ulongtow();
|
test_ulongtow();
|
||||||
|
if (p_ui64tow)
|
||||||
test_ulonglongtow();
|
test_ulonglongtow();
|
||||||
|
if (p_wtoi)
|
||||||
test_wtoi();
|
test_wtoi();
|
||||||
|
if (p_wtol)
|
||||||
test_wtol();
|
test_wtol();
|
||||||
|
if (p_wtoi64)
|
||||||
test_wtoi64();
|
test_wtoi64();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue