diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-15 02:57:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-15 02:57:36 +0000 |
commit | b794a2bd8c40526c000abde831e372744c3fa3e0 (patch) | |
tree | dd27ab02b75a3dd312beaa08b20a974ffc05d6b5 /test/mkmf/test_find_executable.rb | |
parent | ca6a75cd38c97774b2c58a3d305dd5e1c9055772 (diff) | |
download | ruby-b794a2bd8c40526c000abde831e372744c3fa3e0.tar.gz |
* configure.in (warnflags): add -Werror=implicit-function-declaration
if available.
* lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
* test/mkmf/base.rb (setup, teardown): restore config values.
* test/mkmf/test_flags.rb: split from test_find_executable.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf/test_find_executable.rb')
-rw-r--r-- | test/mkmf/test_find_executable.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/mkmf/test_find_executable.rb b/test/mkmf/test_find_executable.rb index 132330bf7c..5ccec880fd 100644 --- a/test/mkmf/test_find_executable.rb +++ b/test/mkmf/test_find_executable.rb @@ -2,22 +2,6 @@ require_relative 'base' class TestMkmf class TestFindExecutable < TestMkmf - def test_valid_warnflags - val = $extmk - begin - makefile = mkmf do - $extmk = false - self.class::CONFIG['warnflags'] = "-Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32" - self.class::CONFIG['GCC'] = 'yes' - configuration '.' - end - generated_flags = makefile.grep(/warnflags/).first[/^warnflags = .*$/] - assert_equal "warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32", generated_flags - ensure - $extmk = val - end - end - def test_find_executable bug2669 = '[ruby-core:27912]' path, ENV["PATH"] = ENV["PATH"], path |