summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2019-02-01 14:51:56 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2019-02-01 14:51:56 +0100
commit5caa8cac3bc0ffa8b5360f3e5d5c84e710eb394b (patch)
tree5b0c4a1c2a96db9723abe45685bd5db478df7c1e /test/libapt
parenta1d9debedcba071d708b3019b5a649314cccb1f6 (diff)
Step over empty sections in TagFiles with comments
Implementing a parser with recursion isn't the best idea, but in practice we should get away with it for the time being to avoid needless codechurn. Closes: #920317 #921037
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/tagfile_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libapt/tagfile_test.cc b/test/libapt/tagfile_test.cc
index f455a8dcc..8823ff781 100644
--- a/test/libapt/tagfile_test.cc
+++ b/test/libapt/tagfile_test.cc
@@ -232,6 +232,8 @@ TEST(TagFileTest, Comments)
FileFd fd;
createTemporaryFile("commentfile", fd, NULL, "# Leading comments should be ignored.\n"
"\n"
+"# A wild second comment appears!\n"
+"\n"
"Source: foo\n"
"#Package: foo\n"
"Section: bar\n"