diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 03:15:27 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 03:15:27 +0000 |
commit | db5dac892bb5683b652d8330e537e077dc5bcf83 (patch) | |
tree | 69c4aa61d811906fe3a339abc61389778fa327ac | |
parent | 974d20e5ff689d711fdf519fba4ee04889a478a8 (diff) | |
download | ATCD-db5dac892bb5683b652d8330e537e077dc5bcf83.tar.gz |
(main): expect 0 on Linux/Alpha, (unsigned long) -10 on everything else for test of TEST_VALUE_NEGATIVE converted to an unsigned long.
-rw-r--r-- | tests/Env_Value_Test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Env_Value_Test.cpp b/tests/Env_Value_Test.cpp index ed5e3f72a01..725510ae987 100644 --- a/tests/Env_Value_Test.cpp +++ b/tests/Env_Value_Test.cpp @@ -76,7 +76,13 @@ main (int argc, char *[]) TEST_THIS (int, "TEST_VALUE_NEGATIVE", 4, -10); TEST_THIS (double, "TEST_VALUE_NEGATIVE", -1.0, -10.2); TEST_THIS (long, "TEST_VALUE_NEGATIVE", 0, -10L); +#if defined (linux) && defined (__alpha) + // ::strtoul () appears to be broken on Linux 2.0.30/Alpha: + // it returns 0 for a negative number. TEST_THIS (unsigned long, "TEST_VALUE_NEGATIVE", 0, 0); +#else /* ! linux || ! __alpha */ + TEST_THIS (unsigned long, "TEST_VALUE_NEGATIVE", 0, (unsigned long) -10); +#endif /* ! linux || ! __alpha */ TEST_THIS (short, "TEST_VALUE_NEGATIVE", 0, -10); char* defstr = "Sarah Cleeland is Two!"; |