summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-bin-debugger/bintest/mrdb.rb')
-rw-r--r--[-rwxr-xr-x]mrbgems/mruby-bin-debugger/bintest/mrdb.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/mrbgems/mruby-bin-debugger/bintest/mrdb.rb b/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
index ae40f0a46..bc5dc4552 100755..100644
--- a/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
+++ b/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
@@ -13,14 +13,14 @@ class BinTest_MrubyBinDebugger
script.flush
# compile
- `./bin/mrbc -g -o "#{bin.path}" "#{script.path}"`
-
+ `#{cmd("mrbc")} -g -o "#{bin.path}" "#{script.path}"`
+
# add mrdb quit
testcase << {:cmd=>"quit"}
stdin_data = testcase.map{|t| t[:cmd]}.join("\n") << "\n"
- ["bin/mrdb #{script.path}","bin/mrdb -b #{bin.path}"].each do |cmd|
+ ["#{cmd('mrdb')} #{script.path}", "#{cmd('mrdb')} -b #{bin.path}"].each do |cmd|
o, s = Open3.capture2(cmd, :stdin_data => stdin_data)
exp_vals = testcase.map{|t| t.fetch(:exp, nil)}
@@ -63,10 +63,7 @@ assert('mruby-bin-debugger(mrdb) command line') do
# ruby source
src = "foo = 'foo'\n"
- str = ""
- 103.times {
- str += "1234567890"
- }
+ str = ":#{'abcdefghij' * 103}"
cmd = "p a=#{str}"
# test case