]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-ubuntu-bug-365611-long-package-names
prevent C++ locale number formatting in text APIs
[apt.git] / test / integration / test-ubuntu-bug-365611-long-package-names
index 894c8dc97d0df8bbde74f70204d83640a41e70ef..53e3ea8318288cd57aee8e2c5259af37b8fcef84 100755 (executable)
@@ -1,11 +1,15 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
-configarchitecture "i386"
+configarchitecture 'i386'
 setupaptarchive
 
 aptget install $(for i in $(seq 0 1000); do echo -n 'a'; done) 2> longpackagename.log > /dev/null || true
 testfileequal 'longpackagename.log' "E: Unable to locate package $(for i in $(seq 0 1000); do echo -n 'a'; done)"
+
+# … and the opposite of long:
+aptget install "" -s >longpackagename.log 2>&1 || true
+testfileequal 'longpackagename.log' "$(aptget install -s)"