summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2015-09-30 15:42:27 +0900
committerYasuhiro Matsumoto <[email protected]>2015-09-30 16:13:02 +0900
commit545d649eff73021d515f7a96841b363b0001e9d9 (patch)
treee7010366188052a89cc659426fc4bbf55367f7a8 /mrbgems/mruby-compiler
parent81ec5f5dc04a45d869ebf393d818cb8d08e0ffbf (diff)
downloadmruby-545d649eff73021d515f7a96841b363b0001e9d9.tar.gz
mruby-545d649eff73021d515f7a96841b363b0001e9d9.zip
fix tests on windows.
'bin/mruby' not work on windows. so correct command name and quoted arguments.
Diffstat (limited to 'mrbgems/mruby-compiler')
-rw-r--r--mrbgems/mruby-compiler/bintest/mrbc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/bintest/mrbc.rb b/mrbgems/mruby-compiler/bintest/mrbc.rb
index b016378a1..e4dc6a9a8 100644
--- a/mrbgems/mruby-compiler/bintest/mrbc.rb
+++ b/mrbgems/mruby-compiler/bintest/mrbc.rb
@@ -6,7 +6,7 @@ assert('Compiling multiple files without new line in last line. #2361') do
a.flush
b.write('module B; end')
b.flush
- result = `bin/mrbc -c -o #{out.path} #{a.path} #{b.path} 2>&1`
- assert_equal "bin/mrbc:#{a.path}:Syntax OK", result.chomp
+ result = `#{cmd('mrbc')} -c -o #{out.path} #{a.path} #{b.path} 2>&1`
+ assert_equal "#{cmd('mrbc')}:#{a.path}:Syntax OK", result.chomp
assert_equal 0, $?.exitstatus
end