Re: Testing algorithm

new topic     » goto parent     » topic index » view thread      » older message » newer message
SDPringle said...

The problem is, this creates a race-condition problem. If emake.bat succeeds the file system might not have the existence of the resulting executable updated yet. So, instead of getting false successes you'll get false failures. Pick your posion. Is there a way to tell the OS hang this process until all current file-system changes are syncronized? Two answers are the UNIX utility sync() and the system Internals Windows utility Sync() . There ought to be a system call for this. If there isn't we need a different work around.

It seems like the easier thing to do would be to read in the emake script and use system_exec a line at a time, and test the exit value from the compiler.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu