summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-10 16:43:25 +0100
committerMichael Vogt <mvo@debian.org>2013-12-10 16:43:25 +0100
commit66f13784f0a05bbd60106d21447f10273c68b0d8 (patch)
tree776033c93cc3154fed9ede96e0df23bdd91ea507 /test/integration
parent651ae5ce5f376ae5274933c621a3b897ac5152a6 (diff)
improve test for #731853 and comments
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-apt-get-source8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/integration/test-apt-get-source b/test/integration/test-apt-get-source
index 6bca22145..e2536ae7a 100755
--- a/test/integration/test-apt-get-source
+++ b/test/integration/test-apt-get-source
@@ -15,13 +15,15 @@ insertpackage 'wheezy' 'unreleated-package' 'all' '1.0'
insertpackage 'unstable' 'foo' 'all' '2.0'
insertsource 'unstable' 'foo' 'all' '2.0'
-# its possible to have multiple src versions in the sources file, do not break
-# in this case (bts #731853)
+# its possible to have multiple src versions in the sources file, ensure
+# to pick the correct one in this case (bts #731853)
insertsource 'stable' 'foo' 'all' '1.5'
+insertsource 'stable' 'foo' 'all' '0.5'
insertpackage 'stable' 'foo' 'all' '1.0'
insertsource 'stable' 'foo' 'all' '1.0'
-# this packages exists only as source
+# this packages exists only as sources, add two versions to ensure that
+# apt will pick the higher version number (bts #731853)
insertsource 'wheezy' 'foo' 'all' '0.0.1'
insertsource 'wheezy' 'foo' 'all' '0.1'