mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Follow the error format changed by FreeBSD 9.
FreeBSD 8.2's last line is "./configure: Can't open ./configure: No such file or directory\n"" but FreeBSD 9's is "cannot open ./configure: No such file or directory\n"". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
530160d605
commit
9a82672ce2
1 changed files with 2 additions and 2 deletions
|
@ -46,13 +46,13 @@ class TestGemExtConfigureBuilder < Gem::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
shell_error_msg = %r{(\./configure: .*)|(Can't open \./configure(?:: No such file or directory)?)}
|
||||
shell_error_msg = %r{(\./configure: .*)|((?:Can't|cannot) open \./configure(?:: No such file or directory)?)}
|
||||
sh_prefix_configure = "sh ./configure --prefix="
|
||||
|
||||
expected = %r(configure failed:
|
||||
|
||||
#{Regexp.escape sh_prefix_configure}#{Regexp.escape @dest_path}
|
||||
.*?: #{shell_error_msg}
|
||||
(?:.*?: )?#{shell_error_msg}
|
||||
)
|
||||
|
||||
assert_match expected, error.message
|
||||
|
|
Loading…
Reference in a new issue