Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH().
MozReview-Commit-ID: 5pksm0jmqAE
--- a/toolkit/crashreporter/test/nsTestCrasher.cpp
+++ b/toolkit/crashreporter/test/nsTestCrasher.cpp
@@ -40,17 +40,17 @@ void PureVirtualCall()
b.use(); // make sure b's actually used
}
// Keep these in sync with CrashTestUtils.jsm!
const int16_t CRASH_INVALID_POINTER_DEREF = 0;
const int16_t CRASH_PURE_VIRTUAL_CALL = 1;
const int16_t CRASH_RUNTIMEABORT = 2;
const int16_t CRASH_OOM = 3;
-const int16_t CRASH_NS_RUNTIMEABORT = 4;
+const int16_t CRASH_MOZ_CRASH = 4;
const int16_t CRASH_ABORT = 5;
extern "C" NS_EXPORT
void Crash(int16_t how)
{
switch (how) {
case CRASH_INVALID_POINTER_DEREF: {
volatile int* foo = (int*)0x42;
@@ -68,18 +68,18 @@ void Crash(int16_t how)
break;
}
case CRASH_OOM: {
mozilla::Unused << moz_xmalloc((size_t) -1);
mozilla::Unused << moz_xmalloc((size_t) -1);
mozilla::Unused << moz_xmalloc((size_t) -1);
break;
}
- case CRASH_NS_RUNTIMEABORT: {
- NS_RUNTIMEABORT("CRASH_NS_RUNTIMEABORT");
+ case CRASH_MOZ_CRASH: {
+ MOZ_CRASH();
break;
}
case CRASH_ABORT: {
abort();
break;
}
default:
break;