Don't abort in stdio.getdelim_invalid and stdio.getline_invalid.
Change-Id: Ie1aefed732f4bea77887bddd1be9a0578e247aa3
This commit is contained in:
parent
cf7a4a4fda
commit
6ad8f76f1f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue