fixes for non interactive execution
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
#ifdef TEST_INTERACTIVE
|
#ifdef TEST_INTERACTIVE
|
||||||
#undef TEST_INTERACTIVE
|
#undef TEST_INTERACTIVE
|
||||||
|
|
||||||
static const bool TEST_INTERACTIVE = FALSE;
|
static const bool TEST_INTERACTIVE = TRUE;
|
||||||
#else
|
#else
|
||||||
static const bool TEST_INTERACTIVE = FALSE;
|
static const bool TEST_INTERACTIVE = FALSE;
|
||||||
#endif
|
#endif
|
||||||
@@ -1947,8 +1947,15 @@ static void TestDivision()
|
|||||||
// multiplication will not overflow)
|
// multiplication will not overflow)
|
||||||
wxLongLong ll = MAKE_LL((rand() >> 12), rand(), rand(), rand());
|
wxLongLong ll = MAKE_LL((rand() >> 12), rand(), rand(), rand());
|
||||||
|
|
||||||
// get a random long (not wxLongLong for now) to divide it with
|
// get a random (but non null) long (not wxLongLong for now) to divide
|
||||||
long l = rand();
|
// it with
|
||||||
|
long l;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
l = rand();
|
||||||
|
}
|
||||||
|
while ( !l );
|
||||||
|
|
||||||
q = ll / l;
|
q = ll / l;
|
||||||
r = ll % l;
|
r = ll % l;
|
||||||
|
|
||||||
@@ -5692,7 +5699,9 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
TestOsInfo();
|
TestOsInfo();
|
||||||
TestUserInfo();
|
TestUserInfo();
|
||||||
TestDiskInfo();
|
|
||||||
|
if ( TEST_INTERACTIVE )
|
||||||
|
TestDiskInfo();
|
||||||
}
|
}
|
||||||
#endif // TEST_INFO_FUNCTIONS
|
#endif // TEST_INFO_FUNCTIONS
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user