]> git.saurik.com Git - apt.git/commitdiff
update the testcase to reflect that native is always on top if
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 25 Jul 2011 11:40:50 +0000 (13:40 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 25 Jul 2011 11:40:50 +0000 (13:40 +0200)
it is not in the config provided list of Architectures

test/libapt/getarchitectures_test.cc

index 1500caeeddca06a602de59962d41125759afbd7e..e3ca7bbc21611b1f7bdb9b6d747be2f6b518e5b2 100644 (file)
@@ -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");