am be8344bb
: Merge "Modify tests for another glibc difference."
* commit 'be8344bb068183715f808768341bce7fb69d5a70': Modify tests for another glibc difference.
This commit is contained in:
commit
da12e64f17
@ -103,7 +103,10 @@ TEST(stdio, getdelim_invalid) {
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
errno = 0;
|
errno = 0;
|
||||||
ASSERT_EQ(getdelim(&buffer, &buffer_length, ' ', fp), -1);
|
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);
|
ASSERT_EQ(EBADF, errno);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(stdio, getline) {
|
TEST(stdio, getline) {
|
||||||
@ -168,7 +171,10 @@ TEST(stdio, getline_invalid) {
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
errno = 0;
|
errno = 0;
|
||||||
ASSERT_EQ(getline(&buffer, &buffer_length, fp), -1);
|
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);
|
ASSERT_EQ(EBADF, errno);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(stdio, printf_ssize_t) {
|
TEST(stdio, printf_ssize_t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user