[DEFAULT]
head = "head_crashreporter.js"
skip-if = [
  "os == 'android'",
  "os == 'win' && msix", # https://bugzilla.mozilla.org/show_bug.cgi?id=1807922
]
support-files = [
  "crasher_subprocess_head.js",
  "crasher_subprocess_tail.js",
]
tags = "os_integration"

["test_crash_AsyncShutdown.js"]
skip-if = [
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64'", # Bug 1993829
]

["test_crash_abort.js"]
skip-if = [
  "os == 'win'",
]

["test_crash_after_js_large_allocation_failure.js"]

["test_crash_after_js_large_allocation_failure_reporting.js"]

["test_crash_after_js_oom_recovered.js"]

["test_crash_after_js_oom_reported.js"]

["test_crash_after_js_oom_reported_2.js"]

["test_crash_backgroundtask_moz_crash.js"]

["test_crash_exc_guard.js"]
skip-if = [
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64'", # Bug 2023967
]
run-if = [
  "os == 'mac'",
]
reason = "Test covering macOS-specific crash type"

["test_crash_heap_corruption.js"]
run-if = [
  "os == 'win'",
]
reason = "Test covering Windows-specific crash type"

["test_crash_modules.js"]
run-if = [
  "os == 'win'",
]
reason = "Test covering Windows-specific module handling"

["test_crash_modules_linux.js"]
run-if = [
  "os == 'linux'",
]
reason = "Test covering Linux-specific module handling"

["test_crash_moz_crash.js"]

["test_crash_oom.js"]

["test_crash_psi_annotation.js"]
run-if = [
  "os == 'linux'",
]
reason = "Test covering Linux-specific PSI (Pressure Stall Information) annotation"

["test_crash_signal_origin_linux.js"]
run-if = [
  "os == 'linux'",
]
reason = "Test covering Linux-specific SignalOrigin annotation"

["test_crash_purevirtual.js"]

["test_crash_rust_panic.js"]

["test_crash_rust_panic_multiline.js"]

["test_crash_stack_overflow.js"]
run-if = [
  "os == 'linux'",
]
reason = "Still broken on macOS and not yet supported on Windows"

["test_crash_stl.js"]
run-if = [
  "debug && !ccov",
  "os == 'win' && !ccov",
  "os == 'mac' && !ccov",
]
reason = "STL hardening is enabled on desktop debug, Windows opt, and MacOS opt builds"

["test_crash_terminator.js"]

["test_crash_uncaught_exception.js"]

["test_crash_win64cfi_alloc_large.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_alloc_small.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_epilog.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_push_nonvol.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_save_nonvol.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_save_nonvol_far.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_save_xmm128.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_win64cfi_save_xmm128_far.js"]
head = "head_crashreporter.js head_win64cfi.js"
run-if = [
  "os == 'win' && arch == 'x86_64'",
]
reason = "Windows test specific to the x86-64 architecture"

["test_crash_with_memory_report.js"]

["test_crashreporter.js"]

["test_crashreporter_appmem.js"]
# we need to skip this due to bug 838613
skip-if = [
  "os == 'android'",
  "os == 'mac' && os_version == '10.15' && arch == 'x86_64'",
  "os == 'mac' && os_version == '14.70' && arch == 'x86_64'",
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64'",
]

["test_crashreporter_crash.js"]

["test_crashreporter_omnijar_loading.js"]

["test_crashreports.js"]

["test_event_files.js"]

["test_kill.js"]

["test_oom_annotation.js"]

["test_override_exception_handler.js"]
run-if = [
  "os == 'win'",
]
