diff --git a/toolkit/mozapps/update/tests/TestAUSHelper.cpp b/toolkit/mozapps/update/tests/TestAUSHelper.cpp index 8d207a742597..e3c5d40af127 100644 --- a/toolkit/mozapps/update/tests/TestAUSHelper.cpp +++ b/toolkit/mozapps/update/tests/TestAUSHelper.cpp @@ -327,6 +327,16 @@ int NS_main(int argc, NS_tchar **argv) #endif } + if (!NS_tstrcmp(argv[1], NS_T("is-process-running"))) { +#ifdef XP_WIN + LPCWSTR application = argv[2]; + return (ERROR_NOT_FOUND == IsProcessRunning(application)) ? 0 : 1; +#else + // Not implemented on non-Windows platforms + return 1; +#endif + } + if (NS_tchdir(argv[1]) != 0) { return 1; } diff --git a/toolkit/mozapps/update/tests/chrome/test_0111_neverButton_basic.xul b/toolkit/mozapps/update/tests/chrome/test_0111_neverButton_basic.xul index c3b2fdfa8250..3851a0982ca7 100644 --- a/toolkit/mozapps/update/tests/chrome/test_0111_neverButton_basic.xul +++ b/toolkit/mozapps/update/tests/chrome/test_0111_neverButton_basic.xul @@ -19,7 +19,7 @@