am da12e64f: am be8344bb: Merge "Modify tests for another glibc difference."

* commit 'da12e64f1770deee4f5d0b4c41d5530a98b21073':
  Modify tests for another glibc difference.
This commit is contained in:
Christopher Ferris 2013-11-21 08:09:57 -08:00 committed by Android Git Automerger
commit e4bc301aa5

View File

@ -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) {