diff options
author | Julian Andres Klode <jak@debian.org> | 2016-02-25 16:46:42 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-02-25 16:46:42 +0100 |
commit | 9de2fd4d117e57824f4a0795efa7379995a804cb (patch) | |
tree | acaa850fc728a1fe8ec7768b5999b98bf9845faa /test | |
parent | 2c53226b72e7e58cdd9b42af46cb3d05da89809e (diff) |
Fix crash with empty architecture list
If the architecture list is empty somehow, fail normally.
LP: #1549819
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-ubuntu-bug-1549819-empty-arch-list | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/test-ubuntu-bug-1549819-empty-arch-list b/test/integration/test-ubuntu-bug-1549819-empty-arch-list new file mode 100755 index 000000000..5e1c6ce7e --- /dev/null +++ b/test/integration/test-ubuntu-bug-1549819-empty-arch-list @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" +setupenvironment +configarchitecture "" +echo 'APT::Architecture "";' > rootdir/etc/apt/apt.conf +echo 'APT::Architectures:: "";' >> rootdir/etc/apt/apt.conf +setupaptarchive + +# test success +testsuccess aptcache -c rootdir/etc/apt/apt.conf gencaches -o debug::NoLocking=1 |