rubygem-pkg-config/rubygem-pkg-config-1.1.3-cflags-result-sort.patch
2020-08-19 11:04:48 +08:00

17 lines
652 B
Diff

--- 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)