From 15077a1f309d615dcd905b0aec009cd079475327 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Oct 2015 13:11:42 +0200 Subject: Make remote repository location path relative --- tests/repository-location/driver.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx index db7c0e2..4ee0c57 100644 --- a/tests/repository-location/driver.cxx +++ b/tests/repository-location/driver.cxx @@ -54,7 +54,6 @@ main (int argc, char* argv[]) { // Test invalid locations. // - // Invalid host. // assert (bad_location ("http:///aa/bb")); @@ -95,11 +94,17 @@ main (int argc, char* argv[]) assert (bad_location ("1")); assert (bad_location ("1/")); + assert (bad_location ("1/..")); assert (bad_location ("bbb")); assert (bad_location ("aaa/bbb")); assert (bad_location ("/aaa/bbb")); + assert (bad_location ("http://aa")); + assert (bad_location ("http://aa/")); + assert (bad_location ("http://aa/b/..")); + assert (bad_location ("http://aa/.")); assert (bad_location ("http://aa/bb")); assert (bad_location ("http://a.com/../c/1/aa")); + assert (bad_location ("http://a.com/a/b/../../../c/1/aa")); // Invalid version. // -- cgit v1.1