summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-01-15 10:35:09 -0800
committerSteve Kondik <shade@chemlab.org>2013-02-15 10:02:23 -0800
commit48b524b247a3f4719896adc61ea5bd51a51c33c3 (patch)
tree6c0e74643acb24c5a5cbc9e579562fb7ec9194e5
parentfd78d4e532a1ca1476705bcd8b6da9a2056ce8c3 (diff)
downloadbionic-48b524b247a3f4719896adc61ea5bd51a51c33c3.zip
bionic-48b524b247a3f4719896adc61ea5bd51a51c33c3.tar.gz
bionic-48b524b247a3f4719896adc61ea5bd51a51c33c3.tar.bz2
fix strerror_r test
e6e60065ff093ff8c859ab146cf543531cb1967c modified strerror_r to treat errno as signed. However, the change to the test code modified the "strerror" test, not the "strerror_r" test. Make the same change for the strerror_r code. Change-Id: Ia236a53df5745935e229a4446a74da8bed0cfd7b
-rw-r--r--tests/string_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp
index b159e4e..b200144 100644
--- a/tests/string_test.cpp
+++ b/tests/string_test.cpp
@@ -75,7 +75,7 @@ TEST(string, strerror_r) {
// Invalid.
ASSERT_EQ(0, strerror_r(-1, buf, sizeof(buf)));
- ASSERT_STREQ("Unknown error 4294967295", buf);
+ ASSERT_STREQ("Unknown error -1", buf);
ASSERT_EQ(0, strerror_r(1234, buf, sizeof(buf)));
ASSERT_STREQ("Unknown error 1234", buf);