Skip to content

Commit

Permalink
updated tests to get rid of 2.0.0 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Feb 28, 2013
1 parent b39570b commit e043f5e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions build_test.sh
Expand Up @@ -8,7 +8,8 @@ for ruby in \
rbx-1.2.4\
rbx-2.0.0-dev\
ree-1.8.7-2012.02\
1.9.3-p385
1.9.3-p385 \
2.0.0-p0
do
echo "\n********************************************************************************"
echo "Building $ruby\n"
Expand Down Expand Up @@ -80,8 +81,8 @@ cd ..
echo "resetting to 1.9.3-p374\n"

cd ext/ox
rbenv local 1.9.3-p385
rbenv local 2.0.0-p0
cd ../../test
rbenv local 1.9.3-p385
rbenv local 2.0.0-p0
cd ..
echo "\n"
4 changes: 2 additions & 2 deletions test/perf_gen.rb
Expand Up @@ -7,8 +7,8 @@

if __FILE__ == $0
if (i = ARGV.index('-I'))
x,path = ARGV.slice!(i, 2)
$: << path
x = ARGV.slice!(i, 2)
$: << x[1]
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/perf_obj.rb
Expand Up @@ -6,8 +6,8 @@

if __FILE__ == $0
if (i = ARGV.index('-I'))
x,path = ARGV.slice!(i, 2)
$: << path
x = ARGV.slice!(i, 2)
$: << x[1]
end
end

Expand Down
6 changes: 3 additions & 3 deletions test/perf_sax.rb
Expand Up @@ -7,8 +7,8 @@

if __FILE__ == $0
while (i = ARGV.index('-I'))
x,path = ARGV.slice!(i, 2)
$: << path
x = ARGV.slice!(i, 2)
$: << x[1]
end
end

Expand Down Expand Up @@ -44,7 +44,7 @@
opts.on("-i", "--iterations [Int]", Integer, "iterations") { |it| $iter = it }
opts.on("-s", "--size [Int]", Integer, "file size in KBytes") { |s| $filesize = s }
opts.on("-h", "--help", "Show this display") { puts opts; Process.exit!(0) }
rest = opts.parse(ARGV)
opts.parse(ARGV)

$xml_str = nil

Expand Down

0 comments on commit e043f5e

Please sign in to comment.