summaryrefslogtreecommitdiff
path: root/tests/stdio_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdio_test.cpp')
-rw-r--r--tests/stdio_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp
index c1a51a808..33514d4ff 100644
--- a/tests/stdio_test.cpp
+++ b/tests/stdio_test.cpp
@@ -335,12 +335,10 @@ TEST(STDIO_TEST, snprintf_S) { // Synonym for %ls.
TEST(STDIO_TEST, snprintf_n) {
#if defined(__BIONIC__)
- // http://b/14492135
+ // http://b/14492135 and http://b/31832608.
char buf[32];
int i = 1234;
- EXPECT_EQ(5, snprintf(buf, sizeof(buf), "a %n b", &i));
- EXPECT_EQ(1234, i);
- EXPECT_STREQ("a n b", buf);
+ EXPECT_DEATH(snprintf(buf, sizeof(buf), "a %n b", &i), "%n not allowed on Android");
#else
GTEST_LOG_(INFO) << "This test does nothing on glibc.\n";
#endif