Add "clines.cpp" in a better way.
This commit is contained in:
parent
d3c5025960
commit
2a7bb70fee
@ -247,9 +247,15 @@ while /^-/ =~ ARGV[0]
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV["PATH"] = (File.expand_path("t/bin") +
|
path_dirs = [ File.expand_path("t/bin") ]
|
||||||
Config::CONFIG["PATH_SEPARATOR"] +
|
if RUBY_PLATFORM =~ /mswin/
|
||||||
ENV["PATH"])
|
path_dirs.unshift File.expand_path("t/bin/windows")
|
||||||
|
end
|
||||||
|
|
||||||
|
ENV["PATH"] = [
|
||||||
|
path_dirs,
|
||||||
|
ENV["PATH"]
|
||||||
|
].join(Config::CONFIG["PATH_SEPARATOR"])
|
||||||
|
|
||||||
files = ARGV.empty? ? Dir.glob("t/*.rb") : ARGV
|
files = ARGV.empty? ? Dir.glob("t/*.rb") : ARGV
|
||||||
rd = RegressionData.new(files)
|
rd = RegressionData.new(files)
|
||||||
|
11
src/clines.cpp
Normal file
11
src/clines.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
for (int i=1; i<argc; ++i) {
|
||||||
|
printf("%s\n", argv[i]);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
BIN
t/bin/windows/clines.exe
Executable file
BIN
t/bin/windows/clines.exe
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user