diff options
| author | fleuria <[email protected]> | 2013-11-16 14:41:33 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-11-16 15:05:15 +0800 |
| commit | 995e0f89cfd5d256c918031207097d2c6c0023c4 (patch) | |
| tree | e6827e624b3c31af2e7f02cf86fd83cb9a058fea | |
| parent | 2d646a13f714172356fe27183516e26ceac11adc (diff) | |
| download | mruby-995e0f89cfd5d256c918031207097d2c6c0023c4.tar.gz mruby-995e0f89cfd5d256c918031207097d2c6c0023c4.zip | |
add regression for #1572
| -rw-r--r-- | build_config.rb | 1 | ||||
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/build_config.rb b/build_config.rb index fce424686..58b1f1e24 100644 --- a/build_config.rb +++ b/build_config.rb @@ -70,6 +70,7 @@ MRuby::Build.new do |conf| # file separetor # conf.file_separator = '/' + conf.enable_bintest = true end # Define cross build settings diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index 46372d1d2..2eb41d758 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -4,3 +4,10 @@ assert('regression for #1564') do o = `bin/mruby -e '<<-' 2>&1` assert_equal o, "-e:1:3: syntax error, unexpected tLSHFT\n" end + +assert('regression for #1572') do + system "echo 'p \"ok\"' > /tmp/1572.rb" + system "bin/mrbc -g -o /tmp/1572.mrb /tmp/1572.rb" + o = `bin/mruby -b /tmp/1572.mrb`.strip + assert_equal o, '"ok"' +end |
