diff --git a/configure.in b/configure.in index 9bee61e4b11..b95b4ce668e 100644 --- a/configure.in +++ b/configure.in @@ -8784,8 +8784,12 @@ fi # Generate a JSON config file for unittest harnesses etc to read # build configuration details from in a standardized way. -OS_TARGET=${OS_TARGET} TARGET_CPU=${TARGET_CPU} MOZ_DEBUG=${MOZ_DEBUG} \ -MOZ_WIDGET_TOOLKIT=${MOZ_WIDGET_TOOLKIT} UNIVERSAL_BINARY=${UNIVERSAL_BINARY} \ +OS_TARGET=${OS_TARGET} \ +TARGET_CPU=${TARGET_CPU} \ +MOZ_DEBUG=${MOZ_DEBUG} \ +MOZ_WIDGET_TOOLKIT=${MOZ_WIDGET_TOOLKIT} \ +UNIVERSAL_BINARY=${UNIVERSAL_BINARY} \ +MOZ_CRASHREPORTER=${MOZ_CRASHREPORTER} \ $PYTHON ${_topsrcdir}/config/writemozinfo.py ./mozinfo.json.tmp if cmp -s ./mozinfo.json.tmp ./mozinfo.json; then rm ./mozinfo.json.tmp diff --git a/testing/xpcshell/xpcshell.ini b/testing/xpcshell/xpcshell.ini index ad415cf5d60..6ca3f6b9c1a 100644 --- a/testing/xpcshell/xpcshell.ini +++ b/testing/xpcshell/xpcshell.ini @@ -101,7 +101,7 @@ skip-if = os == "android" skip-if = !debug [include:toolkit/crashreporter/test/unit/xpcshell.ini] -skip-if = os == "linux" || !crashreporter +skip-if = !crashreporter [include:toolkit/crashreporter/test/unit_ipc/xpcshell.ini] skip-if = !crashreporter diff --git a/toolkit/crashreporter/test/CrashTestUtils.jsm b/toolkit/crashreporter/test/CrashTestUtils.jsm index 2c984906758..39d6b9052c8 100644 --- a/toolkit/crashreporter/test/CrashTestUtils.jsm +++ b/toolkit/crashreporter/test/CrashTestUtils.jsm @@ -22,8 +22,9 @@ let CrashTestUtils = { }; // Grab APIs from the testcrasher shared library +Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/ctypes.jsm"); -let dir = __LOCATION__.parent; +let dir = Services.dirsvc.get("CurWorkD", Components.interfaces.nsILocalFile); let file = dir.clone(); file.append(ctypes.libraryName("testcrasher")); let lib = ctypes.open(file.path); diff --git a/toolkit/crashreporter/test/unit/xpcshell.ini b/toolkit/crashreporter/test/unit/xpcshell.ini index 54515a5efd2..fce8bbc9fd6 100644 --- a/toolkit/crashreporter/test/unit/xpcshell.ini +++ b/toolkit/crashreporter/test/unit/xpcshell.ini @@ -6,6 +6,8 @@ tail = [test_crash_purevirtual.js] [test_crash_runtimeabort.js] [test_crash_oom.js] +skip-if = os == 'win' && debug + [test_crashreporter.js] [test_crashreporter_crash.js] [test_crashreporter_crash_profile_lock.js]