diff -Nur a/test/test-pkg-config.rb b/test/test-pkg-config.rb --- a/test/test-pkg-config.rb 2022-06-30 09:22:08.584847758 +0800 +++ b/test/test-pkg-config.rb 2022-06-30 09:21:51.460599525 +0800 @@ -198,7 +198,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)