Test the refactored Arch in conjunction with ZConfig
authorKlaus Kämpf <kkaempf@suse.de>
Sun, 7 Nov 2010 20:56:07 +0000 (21:56 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Sun, 7 Nov 2010 20:56:07 +0000 (21:56 +0100)
swig/ruby/tests/starting.rb

index be7bfed..4d96404 100644 (file)
@@ -13,5 +13,10 @@ class LoadTest < Test::Unit::TestCase
     require 'zypp'
     zypp = Zypp::ZYppFactory::instance.get_zypp
     assert zypp
+    zconfig = Zypp::ZConfig::instance
+    assert zconfig
+    puts zconfig.system_architecture
+    zconfig.set_system_architecture(Zypp::Arch.new("i686"))
+    puts zconfig.system_architecture
   end
 end