Write write.txt into the tmpdir

pull/5370/head
Ryan Dahl 2010-10-22 10:02:30 -07:00
parent 92c5634cbd
commit 604f4fdf8c
5 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ assert = common.assert
var
path = require('path'),
fs = require('fs'),
fn = path.join(common.fixturesDir, "write.txt"),
fn = path.join(common.tmpDir, "write.txt"),
file = fs.createWriteStream(fn),
EXPECTED = '012345678910',

View File

@ -3,7 +3,7 @@ assert = common.assert
var path = require('path'),
Buffer = require('buffer').Buffer,
fs = require('fs'),
filename = path.join(common.fixturesDir, 'write.txt'),
filename = path.join(common.tmpDir, 'write.txt'),
expected = new Buffer('hello'),
openCalled = 0,
writeCalled = 0;

View File

@ -4,7 +4,7 @@ assert = common.assert
var path = require('path'),
fs = require('fs');
var file = path.join(common.fixturesDir, "write.txt");
var file = path.join(common.tmpDir, "write.txt");
(function() {
var stream = fs.WriteStream(file),

View File

@ -3,7 +3,7 @@ assert = common.assert
path = require('path'),
Buffer = require('buffer').Buffer
fs = require('fs')
fn = path.join(common.fixturesDir, 'write.txt');
fn = path.join(common.tmpDir, 'write.txt');
foo = 'foo'

View File

@ -3,7 +3,7 @@ assert = common.assert
var path = require('path');
var Buffer = require('buffer').Buffer;
var fs = require('fs');
var fn = path.join(common.fixturesDir, "write.txt");
var fn = path.join(common.tmpDir, "write.txt");
var expected = "ümlaut.";
var found;