Skip to content

Commit

Permalink
hello.txt should be stored in tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 18, 2011
1 parent f10150b commit af92315
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ tags
*.pyc
doc/api.xml
tools/nodejs.pc
test/fixtures/hello.txt
tmp/
node
node_g
*.swp
.benchmark_reports
/.project
/.cproject
/.cproject
2 changes: 1 addition & 1 deletion test/simple/test-child-process-custom-fds.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var expected = 'hello world';

// Test the equivalent of:
// $ /bin/echo 'hello world' > hello.txt
var helloPath = fixtPath('hello.txt');
var helloPath = path.join(common.tmpDir, 'hello.txt');

function test1(next) {
console.log('Test 1...');
Expand Down
2 changes: 1 addition & 1 deletion test/simple/test-child-process-deprecated-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var exits = 0;
// for child_process.spawn(path, args, env, customFds) deprecated api
(function() {
var expected = 'hello world';
var helloPath = path.join(common.fixturesDir, 'hello.txt');
var helloPath = path.join(common.tmpDir, 'hello.txt');

fs.open(helloPath, 'w', 400, function(err, fd) {
if (err) throw err;
Expand Down

0 comments on commit af92315

Please sign in to comment.