Skip to content

Commit

Permalink
Backed out changeset a2017655dd34 (bug 1844484) for causing failures …
Browse files Browse the repository at this point in the history
…in test_crash_purevirtual.js
  • Loading branch information
nerli1 committed Aug 1, 2023
1 parent 8ab5bba commit 72a3108
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 51 deletions.
17 changes: 0 additions & 17 deletions build/pure_virtual/moz.build

This file was deleted.

27 changes: 0 additions & 27 deletions build/pure_virtual/pure_virtual.c

This file was deleted.

5 changes: 0 additions & 5 deletions mfbt/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,3 @@ if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
OS_LIBS += ["atomic"]

DEFINES["LZ4LIB_VISIBILITY"] = ""

# This is kind of gross because this is not a subdirectory,
# but pure_virtual requires mfbt to build and some projects
# don't use mfbt.
DIRS += ["../build/pure_virtual"]
2 changes: 0 additions & 2 deletions python/mozbuild/mozbuild/frontend/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ def _link_libraries(self, context, obj, variable, extra_sources):
context, obj, variable, self.STDCXXCOMPAT_NAME[obj.KIND]
)
if obj.KIND == "target":
if "pure_virtual" in self._libs:
self._link_library(context, obj, variable, "pure_virtual")
for lib in context.config.substs.get("STLPORT_LIBS", []):
obj.link_system_library(lib)

Expand Down
8 changes: 8 additions & 0 deletions toolkit/crashreporter/test/unit/test_crash_purevirtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ add_task(async function run_test() {
return;
}

var isOSX = "nsILocalFileMac" in Ci;
if (isOSX) {
dump(
"INFO | test_crash_purevirtual.js | TODO: purecalls not caught on OS X\n"
);
return;
}

// Try crashing with a pure virtual call
await do_crash(
function () {
Expand Down

0 comments on commit 72a3108

Please sign in to comment.