diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 22:03:02 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 22:03:02 +0900 |
| commit | 04edab4c2117acd71031f62c753ed09f6d0da5bb (patch) | |
| tree | 9626f8e42d02e10de14f43387afc2608e84f1818 /bintest | |
| parent | ff4ca4c195144b5ac21ffd5434f2f955471ca8e7 (diff) | |
| parent | 39bbdd5f2fa9f429b94bab759fa2da4524b52708 (diff) | |
| download | mruby-04edab4c2117acd71031f62c753ed09f6d0da5bb.tar.gz mruby-04edab4c2117acd71031f62c753ed09f6d0da5bb.zip | |
Merge pull request #2368 from take-cheeze/partial_hook_fix
Treat partial hook success '\n' to fix #2361 .
Diffstat (limited to 'bintest')
| -rw-r--r-- | bintest/mrbc.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bintest/mrbc.rb b/bintest/mrbc.rb new file mode 100644 index 000000000..b016378a1 --- /dev/null +++ b/bintest/mrbc.rb @@ -0,0 +1,12 @@ +require 'tempfile' + +assert('Compiling multiple files without new line in last line. #2361') do + a, b, out = Tempfile.new('a.rb'), Tempfile.new('b.rb'), Tempfile.new('out.mrb') + a.write('module A; end') + 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 + assert_equal 0, $?.exitstatus +end |
