From: David Kalnischkies Date: Mon, 25 Jul 2011 11:40:50 +0000 (+0200) Subject: update the testcase to reflect that native is always on top if X-Git-Tag: 0.8.15.3^2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/c3182c823bdba037e7f1daaffde8b44155ff4f48?ds=inline;hp=--cc update the testcase to reflect that native is always on top if it is not in the config provided list of Architectures --- c3182c823bdba037e7f1daaffde8b44155ff4f48 diff --git a/test/libapt/getarchitectures_test.cc b/test/libapt/getarchitectures_test.cc index 1500caeed..e3ca7bbc2 100644 --- a/test/libapt/getarchitectures_test.cc +++ b/test/libapt/getarchitectures_test.cc @@ -39,6 +39,12 @@ int main(int argc,char *argv[]) _config->Set("APT::Architecture", "armel"); vec = APT::Configuration::getArchitectures(false); equals(vec.size(), 2); + equals(vec[0], "armel"); + equals(vec[1], "i386"); + + _config->Set("APT::Architectures::2", "armel"); + vec = APT::Configuration::getArchitectures(false); + equals(vec.size(), 2); equals(vec[0], "i386"); equals(vec[1], "armel");