test/test_pkg_config.rb in pkg-config-1.1.2 vs test/test_pkg_config.rb in pkg-config-1.1.3

- old
+ new

@@ -15,17 +15,15 @@ assert(system('pkg-config --exists cairo-png')) assert(@cairo_png.exist?) end def test_cflags - omit("this is known bug in 1.1.2") if PKGConfig::VERSION == "1.1.2" assert_pkg_config("cairo", ["--cflags"], @cairo.cflags) assert_pkg_config("cairo-png", ["--cflags"], @cairo_png.cflags) end def test_cflags_only_I - omit("this is known bug in 1.1.2") if PKGConfig::VERSION == "1.1.2" assert_pkg_config("cairo", ["--cflags-only-I"], @cairo.cflags_only_I) assert_pkg_config("cairo-png", ["--cflags-only-I"], @cairo_png.cflags_only_I) end def test_libs @@ -44,10 +42,10 @@ assert_pkg_config("cairo", ["--libs-only-l"], @cairo.libs_only_l) assert_pkg_config("cairo-png", ["--libs-only-l"], @cairo_png.libs_only_l) @cairo_png.msvc_syntax = true result = pkg_config("cairo-png", "--libs-only-l") - msvc_result = result.gsub(/-l(cairo|png12)\b/, '\1.lib') + msvc_result = result.gsub(/-l(cairo|png[0-9]+)\b/, '\1.lib') assert_not_equal(msvc_result, result) assert_equal(msvc_result, @cairo_png.libs_only_l) end def test_libs_only_L