test fails because snprintf does not support 64bit values, therefore tests on negative integer values is disabled

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@415 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-05 10:24:39 +00:00
parent c65487fd89
commit 98d9388dfb

View file

@ -92,11 +92,6 @@ void TestCase2(const string& fmt, T value, U value2)
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
if(sizeof(size_t) > 4)
{
std::cout << "\n\nSPrintf does not work for negative \n";
std::cout << "integer values on 64 bit systems !!! \n\n";
}
if (argc == 2) if (argc == 2)
{ {
@ -202,7 +197,8 @@ int main(int argc, char** argv)
case 'x': case 'x':
case 'X': case 'X':
//TestCase(formatSpec, RandomInt(-10000, 10000)); //TestCase(formatSpec, RandomInt(-10000, 10000));
// don't test negative values on 64bit systems // don't test negative values on 64bit systems, because
// snprintf does not support 64 Bit values
TestCase(formatSpec, RandomInt( -10000 * (sizeof(size_t)>4 ? 0 : 1) , 10000)); TestCase(formatSpec, RandomInt( -10000 * (sizeof(size_t)>4 ? 0 : 1) , 10000));
break; break;
case 'e': case 'e':