hello.txt should be stored in tmpdir
authorRyan Dahl <ry@tinyclouds.org>
Fri, 18 Mar 2011 16:14:15 +0000 (09:14 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 18 Mar 2011 16:14:15 +0000 (09:14 -0700)
.gitignore
test/simple/test-child-process-custom-fds.js
test/simple/test-child-process-deprecated-api.js

index f3b6236..2e53dd3 100644 (file)
@@ -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
\ No newline at end of file
+/.cproject
index 97b70ee..d4e4a47 100644 (file)
@@ -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...');
index 5f26b12..754c74b 100644 (file)
@@ -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;