fix specs create_exe() on Windows
This commit is contained in:
parent
2dd1ce9f1d
commit
eb54a2b64a
@ -65,6 +65,9 @@ describe Rscons do
|
|||||||
|
|
||||||
def create_exe(exe_name, contents)
|
def create_exe(exe_name, contents)
|
||||||
exe_file = "#{@build_test_run_dir}/_bin/#{exe_name}"
|
exe_file = "#{@build_test_run_dir}/_bin/#{exe_name}"
|
||||||
|
if RUBY_PLATFORM =~ /mingw/
|
||||||
|
exe_file += ".bat"
|
||||||
|
end
|
||||||
File.open(exe_file, "wb") do |fh|
|
File.open(exe_file, "wb") do |fh|
|
||||||
fh.puts("#!/bin/sh")
|
fh.puts("#!/bin/sh")
|
||||||
fh.puts(contents)
|
fh.puts(contents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user