From 9589979f10ffc88503f2de5668f8f54eaf95c0c0 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Tue, 3 Jun 2008 14:44:37 +0100 Subject: [PATCH] Windows unit test bustage fix for bug 378991 - windows has a different name for the executable --- uriloader/exthandler/tests/unit/test_punycodeURIs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uriloader/exthandler/tests/unit/test_punycodeURIs.js b/uriloader/exthandler/tests/unit/test_punycodeURIs.js index 082be47c60..d7ba484b70 100644 --- a/uriloader/exthandler/tests/unit/test_punycodeURIs.js +++ b/uriloader/exthandler/tests/unit/test_punycodeURIs.js @@ -94,6 +94,14 @@ function run_test() { var processDir = HandlerServiceTest._dirSvc.get("CurProcD", Components.interfaces.nsIFile); var exe = processDir.clone(); exe.append("WriteArgument"); + + if (!exe.exists()) { + // Maybe we are on windows + exe.leafName = "WriteArgument.exe"; + if (!exe.exists()) + do_throw("Could not locate the WriteArgument tests executable\n"); + } + var outFile = processDir.clone(); outFile.append(kOutputFile); -- 2.11.4.GIT