From: Daniel Stenberg Date: Tue, 10 Dec 2024 10:18:04 +0000 (+0100) Subject: lib517: extend the getdate test with quotes and leading "junk" X-Git-Tag: curl-8_12_0~373 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75f0835513c0ba5b38a91d16212098d67344f09d;p=thirdparty%2Fcurl.git lib517: extend the getdate test with quotes and leading "junk" Closes #15708 --- diff --git a/tests/libtest/lib517.c b/tests/libtest/lib517.c index e769ae5af5..000e86d36d 100644 --- a/tests/libtest/lib517.c +++ b/tests/libtest/lib517.c @@ -98,6 +98,15 @@ static const struct dcheck dates[] = { {"Thu Apr 18 22:50:12 2007 GMT", 1176936612 }, {"Thu Apr 18 2007 22:50:12 GMT", 1176936612 }, {"Thu Apr 18 2007 GMT 22:50:12", 1176936612 }, + + {"\"Thu Apr 18 22:50:12 2007 GMT\"", 1176936612 }, + {"-\"22:50:12 Thu Apr 18 2007 GMT\"", 1176936612 }, + {"*\"Thu 22:50:12 Apr 18 2007 GMT\"", 1176936612 }, + {";\"Thu Apr 22:50:12 18 2007 GMT\"", 1176936612 }, + {".\"Thu Apr 18 22:50:12 2007 GMT\"", 1176936612 }, + {"\"Thu Apr 18 2007 22:50:12 GMT\"", 1176936612 }, + {"\"Thu Apr 18 2007 GMT 22:50:12\"", 1176936612 }, + {"Sat, 15-Apr-17 21:01:22 GMT", 1492290082 }, {"15-Sat, Apr-17 21:01:22 GMT", 1492290082 }, {"15-Sat, Apr 21:01:22 GMT 17", 1492290082 },