summaryrefslogtreecommitdiff
path: root/rubytest.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-07-28 09:26:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-07-28 09:26:53 +0000
commit16adedaa6d6ceb8e3f21e33dc6653aed3ffa6932 (patch)
treed1c104d8b5e197b22830a2c37f84327de76586b3 /rubytest.rb
parent7dcd244615f172994ca4af37108af7ff744d0998 (diff)
990728
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubytest.rb')
-rw-r--r--rubytest.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/rubytest.rb b/rubytest.rb
index 32b2844a9f..61b31ceaf1 100644
--- a/rubytest.rb
+++ b/rubytest.rb
@@ -17,9 +17,8 @@ if File.exist? CONFIG['LIBRUBY_SO']
ENV[dldpath] = x
end
-if File.exist? CONFIG['LIBRUBY_SO']
- ENV["LD_PRELOAD"] ||= ""
- ENV["LD_PRELOAD"] += " ./#{CONFIG['LIBRUBY_SO']}"
+if /linux/ =~ RUBY_PLATFORM and File.exist? CONFIG['LIBRUBY_SO']
+ ENV["LD_PRELOAD"] = "./#{CONFIG['LIBRUBY_SO']}"
end
$stderr.reopen($stdout)