From e6e60065ff093ff8c859ab146cf543531cb1967c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 10 Jan 2013 16:01:59 -0800 Subject: glibc 2.15 treats errno as signed in strerror(3). And the only reason I hadn't done that in bionic is because I wanted to behave the same as glibc. Change-Id: I2cf1bf0aac82a748cd6305a2cabbac0790058570 --- tests/string_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/string_test.cpp') diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 71998d877..d55771cf6 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -39,7 +39,7 @@ TEST(string, strerror) { ASSERT_STREQ("Operation not permitted", strerror(1)); // Invalid. - ASSERT_STREQ("Unknown error 4294967295", strerror(-1)); + ASSERT_STREQ("Unknown error -1", strerror(-1)); ASSERT_STREQ("Unknown error 1234", strerror(1234)); } -- cgit v1.2.3