diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 12:04:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 12:04:17 +0000 |
commit | bf4a6a0557355a2945dedabe1e494417deaf7073 (patch) | |
tree | 217f386d2635d74a0b5eb2d0f7ac43cca2161433 /test/ruby/test_system.rb | |
parent | 1d3c2678e2e23484098260df337f383c2f5b2c60 (diff) |
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_system.rb')
-rw-r--r-- | test/ruby/test_system.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 0fbad0af33..1819982250 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -37,7 +37,7 @@ class TestSystem < Test::Unit::TestCase tmp = open(tmpfilename, "w") tmp.print "this is a leading junk\n"; tmp.print "#! /usr/local/bin/ruby -s\n"; - tmp.print "print $zzz\n"; + tmp.print "print $zzz if defined? $zzz\n"; tmp.print "__END__\n"; tmp.print "this is a trailing junk\n"; tmp.close @@ -49,7 +49,7 @@ class TestSystem < Test::Unit::TestCase tmp.print "#! /non/exist\\interpreter?/./to|be:ignored\n"; tmp.print "this is a leading junk\n"; tmp.print "#! /usr/local/bin/ruby -s\n"; - tmp.print "print $zzz\n"; + tmp.print "print $zzz if defined? $zzz\n"; tmp.print "__END__\n"; tmp.print "this is a trailing junk\n"; tmp.close |