Skip to content

Commit

Permalink
Follow the error format changed by FreeBSD 9.
Browse files Browse the repository at this point in the history
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".

From ruby-trunk r33517 by naruse
  • Loading branch information
drbrain committed Apr 17, 2012
1 parent c7e56f6 commit 0038bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rubygems/test_gem_ext_configure_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ def test_self_build_fail
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
Expand Down

0 comments on commit 0038bb1

Please sign in to comment.