summaryrefslogtreecommitdiff
path: root/tests/string_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-11-30 16:56:43 -0800
committerElliott Hughes <enh@google.com>2018-12-03 08:46:21 -0800
commiteebf5fddf3db685213831d963f924fd3c6ff6692 (patch)
tree8b7839d279946bad9be6b3e2c9467c44f361ce1a /tests/string_test.cpp
parentc466664c4703fdb9e540c33bd31e0b44d88d891d (diff)
Reduce strerror(3)'s impact on .data.rel.ro.
Test: tests pass Change-Id: I60b15dfac6ca7dce45f4858ad10b8255e2f1b66d
Diffstat (limited to 'tests/string_test.cpp')
-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 8bfa9640e..fd2a78786 100644
--- a/tests/string_test.cpp
+++ b/tests/string_test.cpp
@@ -61,7 +61,7 @@ TEST(STRING_TEST, strerror) {
// Invalid.
ASSERT_STREQ("Unknown error -1", strerror(-1));
- ASSERT_STREQ("Unknown error 1234", strerror(1234));
+ ASSERT_STREQ("Unknown error 134", strerror(EHWPOISON + 1));
}
#if defined(__BIONIC__)