summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--build_config.rb1
-rw-r--r--mrbgems/mruby-bin-mruby/bintest/mruby.rb7
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