chiark / gitweb /
Grey out edit playlists menu item if server does not appear to support
[disorder] / libtests / t-url.c
index dcff4bf642b86927f37b481c530edf1c90b284c9..4bc7474dfed145b82178e102cecf0c428db4f45c 100644 (file)
@@ -50,22 +50,22 @@ static void test_url(void) {
   setenv("SERVER_NAME", "www.anjou.terraraq.org.uk", 1);
   setenv("SERVER_PORT", "80", 1);
   setenv("SCRIPT_NAME", "/~richard/env.cgi", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "http://www.anjou.terraraq.org.uk/~richard/env.cgi");
   setenv("HTTPS", "on", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "https://www.anjou.terraraq.org.uk/~richard/env.cgi");
   setenv("QUERY_STRING", "foo", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "https://www.anjou.terraraq.org.uk/~richard/env.cgi");
   setenv("REQUEST_URI", "/~richard/env%2ecgi", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "https://www.anjou.terraraq.org.uk/~richard/env%2ecgi");
   setenv("REQUEST_URI", "/~richard/env%2ecgi?foo", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "https://www.anjou.terraraq.org.uk/~richard/env%2ecgi");
   setenv("SERVER_PORT", "8080", 1);
-  check_string(infer_url(),
+  check_string(infer_url(1),
                "https://www.anjou.terraraq.org.uk:8080/~richard/env%2ecgi");
 }