Skip to content

Commit

Permalink
Merge pull request #152 from danielctull-forks/testfix
Browse files Browse the repository at this point in the history
[FIX] Test Dir: Handle Spaces in Derived Data Path. Closes #151. (Daniel Tull)
  • Loading branch information
rentzsch committed Mar 16, 2013
2 parents ace3403 + eb5a2cb commit 0d14b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mogenPath = "#{built_products_dir}/mogenerator"
def gen_and_compile(desc, mogenPath, extra_mogen_args, extra_gcc_args)
puts "*** Testing #{desc}"
ENV['MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS'] = '1'
run_or_die "#{mogenPath} --model test.xcdatamodel --output MOs --baseClass MyBaseClass #{extra_mogen_args}"
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 MOs/*.m -I#{Dir.pwd} -framework Foundation -framework Cocoa -framework CoreData #{extra_gcc_args}"
run_or_die "xcrun momc -MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS test.xcdatamodel #{Dir.pwd}/test.mom"
Expand Down

0 comments on commit 0d14b2f

Please sign in to comment.