diff options
author | Elliott Hughes <enh@google.com> | 2013-12-19 14:56:17 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-12-19 14:56:17 -0800 |
commit | 6ad8f76f1f1cbee484c30d723d9d6d1fcf5dc85c (patch) | |
tree | 07ac6a32d57f7a65112ebeda5078d2f064a9a34a /tests/stdio_test.cpp | |
parent | cf7a4a4fda076ec76bb79fdbd039665171e8cd75 (diff) | |
download | bionic-6ad8f76f1f1cbee484c30d723d9d6d1fcf5dc85c.zip bionic-6ad8f76f1f1cbee484c30d723d9d6d1fcf5dc85c.tar.gz bionic-6ad8f76f1f1cbee484c30d723d9d6d1fcf5dc85c.tar.bz2 |
Don't abort in stdio.getdelim_invalid and stdio.getline_invalid.
Change-Id: Ie1aefed732f4bea77887bddd1be9a0578e247aa3
Diffstat (limited to 'tests/stdio_test.cpp')
-rw-r--r-- | tests/stdio_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp index 2002928..bd3c548 100644 --- a/tests/stdio_test.cpp +++ b/tests/stdio_test.cpp @@ -85,6 +85,7 @@ TEST(stdio, getdelim) { TEST(stdio, getdelim_invalid) { FILE* fp = tmpfile(); + ASSERT_TRUE(fp != NULL); char* buffer = NULL; size_t buffer_length = 0; @@ -153,6 +154,7 @@ TEST(stdio, getline) { TEST(stdio, getline_invalid) { FILE* fp = tmpfile(); + ASSERT_TRUE(fp != NULL); char* buffer = NULL; size_t buffer_length = 0; |