Pārlūkot izejas kodu

update the testcase to reflect that native is always on top if
it is not in the config provided list of Architectures

David Kalnischkies 15 gadi atpakaļ
vecāks
revīzija
c3182c823b
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      test/libapt/getarchitectures_test.cc

+ 6 - 0
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");