test: test for `process.argv[0]` correctness
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Fri, 24 Feb 2012 02:07:26 +0000 (03:07 +0100)
committerisaacs <i@izs.me>
Fri, 24 Feb 2012 04:23:24 +0000 (20:23 -0800)
commitb73ec84ce1e867bcda9965ecf2a9e588625ee366
treef8ab3a05f73024d5e0d29500f8bc5bfca58eafdd
parenta84adad07850dac58c444dd59ab386be5ca0e413
test: test for `process.argv[0]` correctness

joyent/node@b0c15412270f32e00c268c578f07a1ed032323f5 introduced a
regression causing `process.argv[0]` to be invalid in node processes
spawned from `PATH` (without explicit path to executable file - for
example when using global node installation).

Instead of finding a correct path to the executable, `process.cwd()`
would be prepended to `process.argv[0]`.
test/simple/test-process-argv-0.js [new file with mode: 0644]