Skip to content

Commit

Permalink
LibPathsRelative: ifdef for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <srenatus@chef.io>
  • Loading branch information
srenatus committed Jan 6, 2019
1 parent adc5cc5 commit 1972e80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/libponyc/program.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ TEST(ProgramTest, LibPathsRelative)
errors_print(opt.check.errors);
pass_opt_done(&opt);

#ifdef PLATFORM_IS_WINDOWS
const char* expect = "static\"/foo\\bar\" dynamic\"/foo\\bar\" ";
#else
const char* expect = "static\"/foo/bar\" dynamic\"/foo/bar\" ";
#endif
ASSERT_STREQ(expect, program_lib_args(prog));

ast_free(prog);
Expand Down

0 comments on commit 1972e80

Please sign in to comment.