Browse Source

libdpkg: Check in test-case that : is an illegal character in revision

Guillem Jover 16 years ago
parent
commit
c838e48663
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/dpkg/test/t-version.c

+ 2 - 1
lib/dpkg/test/t-version.c

@@ -140,7 +140,8 @@ test_version_parse(void)
 	test_fail(parseversion(&a, "0:!#@$%&/|\\<>()[]{};,=*^'-0") == NULL);
 
 	/* Test invalid characters in revision. */
-	test_fail(parseversion(&a, "0:0-!#@$%&/|\\<>()[]{};,=*^'") == NULL);
+	test_fail(parseversion(&a, "0:0-0:0") == NULL);
+	test_fail(parseversion(&a, "0:0-!#@$%&/|\\<>()[]{}:;,=*^'") == NULL);
 
 	/* FIXME: Complete. */
 }