Bug 898819 - test_punycodeURIs.js should not use a shared dir for output. r=mbanner

This commit is contained in:
Mihnea Dobrescu-Balaur 2013-07-28 01:42:20 -07:00
parent 5ca18055eb
commit da104a616c

View File

@ -11,9 +11,11 @@ const kOutputFile = "result.txt";
const kMaxCheckExistAttempts = 30; // seconds
var gCheckExistsAttempts = 0;
const tempDir = do_get_tempdir();
function checkFile() {
// This is where we expect the output
var tempFile = do_get_cwd();
var tempFile = tempDir.clone();
tempFile.append(kOutputFile);
if (!tempFile.exists()) {
@ -90,7 +92,7 @@ function run_test() {
do_throw("Could not locate the WriteArgument tests executable\n");
}
var outFile = processDir.clone();
var outFile = tempDir.clone();
outFile.append(kOutputFile);
// Set an environment variable for WriteArgument to pick up