[Rubygems-developers] [PATCH] Fix configure test

Donavan Pantke avatar at spellboundnet.com
Tue Apr 10 12:06:00 EDT 2007

I noticed when running the test suite on my Linux machine, the test that 
checked for the failure to run ./configure wasn't working right. Not sure if 
the Mac shells handle this differently, but here's a patch to make them work 
correctly on Linux:

Index: test_gem_ext_configure_builder.rb
--- test_gem_ext_configure_builder.rb   (revision 1225)
+++ test_gem_ext_configure_builder.rb   (working copy)
@@ -51,14 +51,14 @@
     expected = "configure failed:

 sh ./configure --prefix=#{@dest_path}
-./configure: ./configure: No such file or directory
+sh: ./configure: No such file or directory

     assert_equal expected, error.message

     expected = [
       "sh ./configure --prefix=#{@dest_path}",
-      "./configure: ./configure: No such file or directory\n"
+      "sh: ./configure: No such file or directory\n"

     assert_equal expected, output

More information about the Rubygems-developers mailing list