Bug 1313488 - Part 1: Convert XPCOM test TestDeadlockDetector to a gtest. r=froydnj
This converts TestDeadlockDetector to a gtest. The logic for spawning off subprocesses is replaced with gtest's built-in death tests. On linux this will clone() the process and assert that the child process generates the appropriate assertion message. On OSX it will use fork(). In theory this should work on Windows as well buy spawning a new process but this test currently disabled there. MozReview-Commit-ID: 9Sl0hHBVGT3 --HG-- rename : xpcom/tests/TestDeadlockDetector.cpp => xpcom/tests/gtest/TestDeadlockDetector.cpp
Showing
- testing/cppunittest.ini 0 additions, 2 deletionstesting/cppunittest.ini
- xpcom/tests/TestDeadlockDetector.cpp 0 additions, 566 deletionsxpcom/tests/TestDeadlockDetector.cpp
- xpcom/tests/gtest/TestDeadlockDetector.cpp 295 additions, 0 deletionsxpcom/tests/gtest/TestDeadlockDetector.cpp
- xpcom/tests/gtest/moz.build 7 additions, 0 deletionsxpcom/tests/gtest/moz.build
- xpcom/tests/moz.build 0 additions, 1 deletionxpcom/tests/moz.build
Loading
Please register or sign in to comment