Skip to content

Commit

Permalink
fix some tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jomy10 committed Jan 13, 2024
1 parent 401f884 commit ebcbc65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/basic-c-commands/make.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
OBJ_OUT = File.join(OUT, "obj")
Beaver::def_dir OBJ_OUT

EXEC_NAME = "hello"
EXEC_NAME = "hello" + (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) ? ".exe" : ""

cmd :build do
call :build_objs
Expand All @@ -28,6 +28,6 @@
end

cmd :run do
sh File.join("./", OUT, EXEC_NAME)
sh File.join("./", OUT, EXEC_NAME )
end

2 changes: 1 addition & 1 deletion tests/basic-c-project/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def setup
EXPECTED_MY_EXECUTABLE_ARTIFACTS = [
"out/MyExecutable/obj/bin_main.c.o",
"out/MyExecutable/obj/bin_print.cpp.o",
"out/MyExecutable/MyExecutable"
"out/MyExecutable/MyExecutable" + (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) ? ".exe" : ""
].sort

def test_build_library
Expand Down

0 comments on commit ebcbc65

Please sign in to comment.