Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
Use argv[0] for node executable in run-tests.roy
Browse files Browse the repository at this point in the history
  • Loading branch information
puffnfresh committed Dec 28, 2011
1 parent c56feb2 commit f1ca20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-tests.roy
Original file line number Diff line number Diff line change
Expand Up @@ -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
else
Expand Down

3 comments on commit f1ca20f

@sledorze
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
e.js:82:11)
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)

@puffnfresh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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

@sledorze
Copy link

@sledorze sledorze commented on f1ca20f Dec 30, 2011 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.