Sophie

Sophie

distrib > Fedora > 19 > i386 > by-pkgid > 69a4bdc18128ed544540073a5c97a049 > files > 2

rubygem-pkg-config-1.1.6-1.fc19.src.rpm

--- pkg-config-1.1.3/test/test_pkg_config.rb.newpkgconfig	2012-08-02 14:18:08.216508255 +0900
+++ pkg-config-1.1.3/test/test_pkg_config.rb	2012-08-02 15:14:58.597886753 +0900
@@ -109,7 +109,12 @@
   def assert_pkg_config(package, pkg_config_args, actual)
     result = pkg_config(package, *pkg_config_args)
     result = nil if result.empty?
-    assert_equal(result, actual)
+    begin
+      assert_equal(result, actual)
+    rescue
+      puts "Did not match, retry with sorting"
+      assert_equal(result.split(" ").sort.join(" "), actual.split(" ").sort.join(" "))
+    end
   end
 
   def assert_override_variables(expected, override_variables)