"git@git.sphere.ly:matisse/android_kernel_samsung_matisse.git" did not exist on "a0574e04807608998d4d115c07b7bc12bb499a44"
Commit be8344bb authored by Christopher Ferris's avatar Christopher Ferris Committed by Gerrit Code Review
Browse files

Merge "Modify tests for another glibc difference."

parents f246c589 cbd85b9c
......@@ -103,7 +103,10 @@ TEST(stdio, getdelim_invalid) {
fclose(fp);
errno = 0;
ASSERT_EQ(getdelim(&buffer, &buffer_length, ' ', fp), -1);
// glibc sometimes doesn't set errno in this particular case.
#if defined(__BIONIC__)
ASSERT_EQ(EBADF, errno);
#endif
}
TEST(stdio, getline) {
......@@ -168,7 +171,10 @@ TEST(stdio, getline_invalid) {
fclose(fp);
errno = 0;
ASSERT_EQ(getline(&buffer, &buffer_length, fp), -1);
// glibc sometimes doesn't set errno in this particular case.
#if defined(__BIONIC__)
ASSERT_EQ(EBADF, errno);
#endif
}
TEST(stdio, printf_ssize_t) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment