]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: list more up-to-date urls in test-web-util 8892/head
authorLennart Poettering <lennart@poettering.net>
Thu, 3 May 2018 08:55:16 +0000 (10:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 May 2018 08:55:16 +0000 (10:55 +0200)
This is based on @jsynacek's patch from #8837, but adds the new URL in
two flavours instead of replacing the old, also making @keszybz happy.

Replaces: #8837

src/test/test-web-util.c

index ae4479d223291f447008a9ca47aad9e0efdefd2a..dbc7781e060a00e6eadcaa498d32f3c526388124 100644 (file)
@@ -10,7 +10,9 @@
 
 static void test_is_valid_documentation_url(void) {
         assert_se(documentation_url_is_valid("http://www.freedesktop.org/wiki/Software/systemd"));
-        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt"));
+        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt"));  /* dead */
+        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst"));
+        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html"));
         assert_se(documentation_url_is_valid("file:/foo/foo"));
         assert_se(documentation_url_is_valid("man:systemd.special(7)"));
         assert_se(documentation_url_is_valid("info:bar"));