diff options
author | Nick Kralevich <nnk@google.com> | 2013-01-15 10:35:09 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-01-15 10:35:09 -0800 |
commit | 606058933c5129cb1026960ea67624b9426c610f (patch) | |
tree | b041941841289aff7b9fd12217a97ab1bbd22054 /tests/string_test.cpp | |
parent | b09d7d86004ab75b774358454d8ee261987af96b (diff) |
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
Diffstat (limited to 'tests/string_test.cpp')
-rw-r--r-- | tests/string_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 3f7d50019..08c73a1aa 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -77,7 +77,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); |