Skip to content

Commit

Permalink
Avoid slashes in output tests
Browse files Browse the repository at this point in the history
causing test failures on windows.
  • Loading branch information
isaacs committed Jan 9, 2017
1 parent 5c820a8 commit cddf1db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/generate-test-test.js
Expand Up @@ -55,6 +55,7 @@ function generate (file, bail, buffer) {
output = output.split(f).join('___/.*/~~~' + path.basename(f))

var dir = path.dirname(file)
output = output.split(dir + '/').join('___/.*/~~~')
output = output.split(dir).join('___/.*/~~~' + path.basename(dir))

output = output.split(node + ' ___/').join('\0N1\0')
Expand Down
2 changes: 1 addition & 1 deletion test/test/bail-fail-spawn--bail--buffer.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - bail fail {
not ok 1 - ./test/test/nesting.js
---
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
{"arguments":["___/.*/~~~nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
...
{
not ok 1 - nesting {
Expand Down
2 changes: 1 addition & 1 deletion test/test/bail-fail-spawn--buffer.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - bail fail {
not ok 1 - ./test/test/nesting.js
---
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
{"arguments":["___/.*/~~~nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
...
{
not ok 1 - nesting {
Expand Down

0 comments on commit cddf1db

Please sign in to comment.