diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 7b6268f8c7..0b0bf632f4 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -164,10 +164,6 @@ class BuildError < Homebrew::InstallationError super formula, "Failed executing: #{command} #{args}" end - def was_running_configure? - @command == './configure' - end - def issues @issues ||= fetch_issues end diff --git a/Library/Homebrew/test/tarballs/configure_fails.tar.gz b/Library/Homebrew/test/tarballs/configure_fails.tar.gz deleted file mode 100755 index 8be00ee467..0000000000 Binary files a/Library/Homebrew/test/tarballs/configure_fails.tar.gz and /dev/null differ diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb index b3184fe8cd..d8880c0eb8 100644 --- a/Library/Homebrew/test/test_formula_install.rb +++ b/Library/Homebrew/test/test_formula_install.rb @@ -14,20 +14,6 @@ class TestScriptFileFormula < ScriptFileFormula end -class ConfigureTests < Test::Unit::TestCase - def teardown - HOMEBREW_CACHE.rmtree - end - - def test_detect_failed_configure - f = ConfigureFails.new - shutup { f.brew { f.install } } - rescue BuildError => e - assert e.was_running_configure? - end -end - - class InstallTests < Test::Unit::TestCase def teardown HOMEBREW_CACHE.rmtree diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb index 645585cb1c..be965e25fe 100644 --- a/Library/Homebrew/test/testball.rb +++ b/Library/Homebrew/test/testball.rb @@ -13,17 +13,3 @@ class TestBall < Formula prefix.install "libexec" end end - -class ConfigureFails < Formula - url "file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz" - version '1.0.0' - sha1 'b36c65e5de86efef1b3a7e9cf78a98c186b400b3' - - def initialize(name="configure_fails", path=nil) - super - end - - def install - system "./configure" - end -end