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:
parent
fb7d3b4e38
commit
c396866de6
@ -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
|
||||
|
@ -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
2
tests/playlist-bad2.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user