1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Test recovery after excessively long lines

This commit is contained in:
Moritz Grimm 2015-06-01 15:25:59 +02:00
parent fb7d3b4e38
commit c396866de6
3 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,7 @@ EXTRA_DIST = \
play-bad2.sh \
play-bad3.sh \
playlist-bad.txt \
playlist-bad2.txt \
playlist.txt
CLEANFILES = *~ *.core core *.gcno *.gcda

View File

@ -40,6 +40,11 @@ START_TEST(test_playlist_file)
ck_assert_ptr_ne(p, NULL);
ck_assert_ptr_eq(playlist_get_next(p), NULL);
playlist_free(&p);
p = playlist_read(SRCDIR "/playlist-bad2.txt");
ck_assert_ptr_ne(p, NULL);
ck_assert_str_eq(playlist_get_next(p), "1.ogg");
playlist_free(&p);
}
END_TEST

2
tests/playlist-bad2.txt Normal file

File diff suppressed because one or more lines are too long