Browse files

Use argv[0] for node executable in run-tests.roy

  • Loading branch information...
1 parent c56feb2 commit f1ca20f2f773ba21dec88aef1728791f715a90eb @puffnfresh committed Dec 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 run-tests.roy
2 run-tests.roy
@@ -12,7 +12,7 @@ let tests = files.filter (λx →
tests.forEach (λt →
let name = path.join dir t
let outFile = (path.join dir (path.basename t '.roy')) ++ '.out'
- child_process.exec './roy -r ' ++ name (λerror stdout stderr →
+ child_process.exec (process.argv ! 0) ++ ' ./roy -r ' ++ name (λerror stdout stderr →
if error then
console.log "Error:" name error.message

3 comments on commit f1ca20f


It can't be parsed..

Error: Parse error on line 16: Unexpected '!'
at Object.parseError (C:\Datas\SDKs\Roy\src\parser.js:270:11)
at Object.parse (C:\Datas\SDKs\Roy\src\parser.js:347:22)
at C:\Datas\SDKs\Roy\src\compile.js:363:22
at C:\Datas\SDKs\Roy\src\compile.js:569:24
at Array.forEach (native)
at Function. (C:\Datas\SDKs\Roy\node_modules\underscore\underscor
at Object.main (C:\Datas\SDKs\Roy\src\compile.js:562:7)
at Object. (C:\Datas\SDKs\Roy\roy:2:26)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)


@sledorze looks like you might have to run make again.

I'm hoping that I'll be able to remove the make requirement eventually.

Please sign in to comment.