aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-13 13:11:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-13 13:11:42 +0200
commit15077a1f309d615dcd905b0aec009cd079475327 (patch)
tree229af1f423a29487864088ef61f6603eecacb0f3 /tests/repository-location/driver.cxx
parent76bcf09fde0b981879ebb76dce0514e03ff88ad4 (diff)
Make remote repository location path relative
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r--tests/repository-location/driver.cxx7
1 files changed, 6 insertions, 1 deletions
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.
//