OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf7a4a4
)
Don't abort in stdio.getdelim_invalid and stdio.getline_invalid.
author
Elliott Hughes
<enh@google.com>
Thu, 19 Dec 2013 22:56:17 +0000
(14:56 -0800)
committer
Elliott Hughes
<enh@google.com>
Thu, 19 Dec 2013 22:56:17 +0000
(14:56 -0800)
Change-Id: Ie1aefed732f4bea77887bddd1be9a0578e247aa3
tests/stdio_test.cpp
patch
|
blob
|
history
diff --git
a/tests/stdio_test.cpp
b/tests/stdio_test.cpp
index
2002928
..
bd3c548
100644
(file)
--- 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;