From 6ad8f76f1f1cbee484c30d723d9d6d1fcf5dc85c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 19 Dec 2013 14:56:17 -0800 Subject: [PATCH] Don't abort in stdio.getdelim_invalid and stdio.getline_invalid. Change-Id: Ie1aefed732f4bea77887bddd1be9a0578e247aa3 --- tests/stdio_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp index 2002928fe..bd3c548ac 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;