Skip to content

Commit

Permalink
Quote paths in test/Rakefile
Browse files Browse the repository at this point in the history
Add quotes around calls to `Dir.pwd` so that tests run if the path contains spaces.
  • Loading branch information
jonah-williams authored and Justin Williams committed Jun 29, 2015
1 parent 83220a8 commit 2f2f034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def gen_and_compile(desc, mogenPath, extra_mogen_args, extra_gcc_args)
ENV['MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS'] = '1'
run_or_die "#{mogenPath.gsub(/ /, '\\ ')} --model test.xcdatamodel --output MOs --baseClass MyBaseClass #{extra_mogen_args}"
run_or_die 'cp HumanMO.h HumanMO.m MyProtocol.h TestProtocol.m MOs'
run_or_die "clang -o testbin test.m MyBaseClass.m Gender.m MOs/*.m -I#{Dir.pwd} -framework Foundation -framework Cocoa -framework CoreData -fmodules #{extra_gcc_args}"
run_or_die "xcrun momc -MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS test.xcdatamodel #{Dir.pwd}/test.mom"
run_or_die "clang -o testbin test.m MyBaseClass.m Gender.m MOs/*.m -I\"#{Dir.pwd}\" -framework Foundation -framework Cocoa -framework CoreData -fmodules #{extra_gcc_args}"
run_or_die "xcrun momc -MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS test.xcdatamodel \"#{Dir.pwd}/test.mom\""
puts run_or_die './testbin'
end

Expand Down

0 comments on commit 2f2f034

Please sign in to comment.