Commit Graph
106 Commits
Author SHA1 Message Date
Andreea Pavel 9770ea91c0 Bug 1468199 - remove references to b2g in test manifests r=jmaher 2018-06-12 14:57:00 +03:00
Mike Hommey d651d42913 Bug 1464084 - Don't export std::thread::_M_start_thread symbols with --enable-stdcxx-compat. r=froydnj
This relies on the fact that providing multiple --version-script
combines them all, so we effectively create a new symbol version
that has no global symbol, but hides the std::thread::_M_start_thread
symbols.

This version script trick happens to work with BFD ld, gold, and lld.

The downside is that when providing multiple --version-script's, ld
doesn't want any of them to have no version at all. So for the libraries
that do already have a version script (through SYMBOLS_FILE), we use a
version where there used to be none, using the library name as the
version. Practically speaking, this binds the libraries a little closer
than they used to be, kind of non-flat namespace on OSX (which is the
default there), meaning the dynamic linker will actively want to use
symbols from those libraries instead of a system library that might
happen to have the same symbol name.
2018-06-01 08:10:25 +09:00
Gurzau Raul 6a7d84c0f7 Backed out changeset 838c0ab9cbdb (bug 1464084) for Linux static bustage on a CLOSED TREE 2018-06-02 02:42:52 +03:00
Mike Hommey 3efa4e0706 Bug 1464084 - Don't export libstdc++ symbols with --enable-stdcxx-compat. r=froydnj
This relies on the fact that providing multiple --version-script
combines them all, so we effectively create a new symbol version
that has no global symbol, but hides as much std::* stuff as possible.

The added symbol script could use `extern "C++"` syntax and demangled
symbols but there is no guarantee the demangled symbols won't change.
Plus, it's not possible to match demangled symbols that have a return
type: they contain a space, and the only way to match that is to use
double quotes, which doesn't allow globs at the same time.

This version script trick happens to work with BFD ld, gold, and lld.

The downside is that when providing multiple --version-script's, ld
doesn't want any of them to have no version at all. So for the libraries
that do already have a version script (through SYMBOLS_FILE), we use a
version where there used to be none, using the library name as the
version. Practically speaking, this binds the libraries a little closer
than they used to be, kind of non-flat namespace on OSX (which is the
default there), meaning the dynamic linker will actively want to use
symbols from those libraries instead of a system library that might
happen to have the same symbol name.
2018-06-01 08:10:25 +09:00
Paul Adenot ed3b466eb1 Bug 1454385 - Add a single producer single consumer lock and wait free queue to mfbt/. r=froydnj
MozReview-Commit-ID: 6Dq0GQtYgv2
2018-04-13 17:14:05 +02:00
Andrew McCreight e18736942b Bug 1402151, part 9 - Implement gtest for FTP directory listing parsing. r=michal
This test turns the existing stand alone test for the FTP directory
listing parser into a gtest.

MozReview-Commit-ID: 7n60TfcTXTJ
2017-09-25 11:19:33 -07:00
Matt Woodrow e8e17e64f5 Bug 1397056 - Add Contains and a return parameter to Remove for SmallPointerArray. r=froydnj
* * *
[mq]: fix

MozReview-Commit-ID: 5laM7PQLP7X
2017-09-12 14:11:47 -04:00
Wes Kocher c073f79c93 Backed out changeset 371a03aa9b24 (bug 1397056) for build errors in SmallPointerArray.h a=backout CLOSED TREE
MozReview-Commit-ID: FNVPjKmVCWB
2017-09-12 12:39:09 -07:00
Matt Woodrow bc08a7b758 Bug 1397056 - Add Contains and a return parameter to Remove for SmallPointerArray. r=froydnj
* * *
[mq]: fix

MozReview-Commit-ID: 5laM7PQLP7X
2017-09-12 14:11:47 -04:00
Marco Castelluccio e9daf7ce7a Bug 1371970 - Add TestPrintf to cppunittest.ini to make it execute on automation. r=glandium 2017-07-11 23:46:12 +02:00
Botond Ballo 37b42aacdf Bug 1371771 - Add a MOZ_DEFINE_ENUM macro and variants to MFBT. r=froydnj
The macro simultaneously declares an enumeration and a count of its
enumerators.

A few variants of the macro are also provided to handle things like
enum classes, underlying types, and enumerations declared at class
scope.

MozReview-Commit-ID: 3z6yHnfXbLj
2017-06-30 19:58:11 -04:00
Dan Minor 06ef52e2cf Bug 1322707 - Stop building signaling_unittest and mediapipeline_unittests; r=jesup,glandium
MozReview-Commit-ID: FAAiByOB4m
2016-12-09 09:09:41 -10:00
Dan Minor d2e2c4c2a4 Bug 1317714 - port mediaconduit_unittests to xul gtest; r=jesup, glandium
The test results were updated to match current behaviour. The
TestDummyAudioWithTransport and TestDummyVideoWithTransports are disabled due
to shutdown crashes and intermittent failures that show up in automation.
A follow up bug has been filed to fix these. The GMP test was removed
completely as it seems unlikely that it will be practical to test that from a
gtest.

MozReview-Commit-ID: 2pOb7u2Qp7v
2016-11-18 08:17:36 -05:00
Benjamin Smedberg a0df451c2b Bug 1313752 - Port binary tests in netwerk/test to gtest, or remove the ones that we currently aren't running. r=michal.novotny. Includes the following followups:
* TestUDPSocket wasn't initializing it's members properly, fixup by mcmanus
* Scope the netwerk TestCommon waiting to be non-global, and add assertions so that waiting is deterministic. r=mcmanus

MozReview-Commit-ID: 7jLgNIujrbu
2016-11-29 13:53:48 -05:00
Nathan Froyd b995466f21 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Nicholas Nethercote 9994803f5a Bug 1315138 - gtestify storage/test/*.cpp. r=mak,erahm.
This change is mostly straightforward, except for the following.

- It removes all the printing from the do_check_* macros because gtest macros
  do appropriate printing.

- test_StatementCache.cpp needs some special gtest magic for the type
  parameterization.

- It merges the four tests in test_unlock_notify.cpp because they rely on being
  executed in order, and so aren't independent.

- storage_test_harness_tail.h is no longer necessary because gtest provides the
  test looping functionality.

- It uses #include and the preprocessor to remove the duplication between
  test_deadlock_detector.cpp and xpcom/tests/DeadlockDetector.cpp.

- It makes the test in test_service_init_background_thread.cpp a death test to
  force it to be the first storage gtest, because it fails otherwise.

- It adds code to undo the SQLite mutex hooking as necessary, so that tests
  don't interfere with each other.

- It de-virtualizes Spinner's destructor (as identified in bug 1318282).
2016-11-11 09:59:23 +11:00
Nicholas Nethercote 6d0bee9f8e Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.
2016-11-12 06:22:01 +11:00
Dan Minor 7aa1a41023 Bug 1317009 - Port jsep_session_unittest and jsep_track_unittest to xul gtest; r=bwc
MozReview-Commit-ID: spuZSAnSDC
2016-11-15 09:35:14 -05:00
Benjamin Smedberg ed1f6066be Bug 1314350 - Port TestTXMgr to gtest. This removes the framework for testing object destruction order because that was already non-deterministic due to the cycle collector, r=masayuki
MozReview-Commit-ID: vK4iYmytgt
2016-11-15 13:06:05 -05:00
Benjamin Smedberg bf5cc1e428 Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Iris Hsiao ea85a6b247 Backed out changeset 4585a7b6f3ce (bug 1314378) 2016-11-16 15:30:52 +08:00
Benjamin Smedberg 9ef05e03bd Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Matthew Gregan a5db0b5af8 Bug 1314514 - Update libcubeb to 8bab182c. r=padenot 2016-11-11 15:01:56 +13:00
Wes Kocher a4cbd45ed9 Backed out changeset 359999c77a46 (bug 1314514) for build bustage a=backout CLOSED TREE 2016-11-15 12:03:51 -08:00
Matthew Gregan 94b0e8f159 Bug 1314514 - Update libcubeb to 8bab182c. r=padenot 2016-11-11 15:01:56 +13:00
Dan Minor 43ecf22b49 Bug 1316888 - Port sdp_unittests to xul gtest; r=bwc
MozReview-Commit-ID: 12qrqpZq2pW
2016-11-11 12:24:03 -05:00
Nicholas Nethercote 81687813e8 Bug 1315869 - gtestify security/manager/ssl/tests/compiled/*.cpp. r=cykesiopka. 2016-11-08 15:37:06 +11:00
David Keeler 41b5875a09 bug 1315869 - convert TestIsCertBuiltInRoot to an xpcshell test r=Cykesiopka,njn
MozReview-Commit-ID: 4MYxUtuLj4p
2016-11-08 16:47:37 -08:00
Eric Rahm 7c198dbf2c Bug 1316904 - Convert windows XPCOM tests to gtest. r=froydnj
This converts TestNtPathToDosPath and TestCOM to gtests.

MozReview-Commit-ID: EeNwvsj4cAs
2016-11-11 12:02:52 -08:00
Eric Rahm ead9925a96 Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-10 12:47:48 -08:00
Eric Rahm c470495488 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
2016-11-10 12:47:23 -08:00
Sebastian Hengst 018f92d608 Backed out changeset deabf7bc6526 (bug 1313488) 2016-11-09 21:10:10 +01:00
Sebastian Hengst 3e99941dbc Backed out changeset 54098e53a584 (bug 1313489) 2016-11-09 21:10:02 +01:00
Eric Rahm 3b194cefac Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-09 10:25:17 -08:00
Eric Rahm a291f89e15 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
2016-11-09 10:24:58 -08:00
Eric Rahm 41c80ef7d6 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5
2016-11-09 10:24:22 -08:00
Eric Rahm 65829977bc Bug 1313484 - Convert XPCOM test TestTimers to a gtest. r=froydnj
MozReview-Commit-ID: 8sH5fbvv9wZ
2016-11-09 10:23:43 -08:00
Nicholas Nethercote a0ae5076ac Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot.
The only complication was that I had to add namespaces to TestAudioMixer.cpp
and TestAudioSegment.cpp to avoid multiple definitions of a few small helper
functions like GetLowValue().
2016-11-09 08:47:23 +11:00
Phil Ringnalda 8e58245a70 Backed out 5 changesets (bug 1313489, bug 1313488, bug 1313484) in hopes that OS X will go back to building without complaining about missing symbols in nsIFileEnumerator
Backed out changeset 276b093c968f (bug 1313489)
Backed out changeset 5a062f72097d (bug 1313489)
Backed out changeset dbd9b56b50e7 (bug 1313488)
Backed out changeset 22e770047827 (bug 1313488)
Backed out changeset 6a7831fbca69 (bug 1313484)

MozReview-Commit-ID: KP9gk9o11co
2016-11-07 19:12:13 -08:00
Sebastian Hengst f3b9fd3b49 Backed out changeset 1b545e55e42a (bug 1313485) for bustage. r=backout 2016-11-07 23:46:09 +01:00
Eric Rahm 01c8effab6 Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-07 14:27:20 -08:00
Eric Rahm 5378e98981 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
2016-11-07 14:27:04 -08:00
Eric Rahm f1c4acfec0 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5
2016-11-07 14:26:25 -08:00
Eric Rahm fbd35cdac6 Bug 1313484 - Convert XPCOM test TestTimers to a gtest. r=froydnj
MozReview-Commit-ID: 8sH5fbvv9wZ
2016-11-07 14:25:41 -08:00
Nicholas Nethercote 39a85dc1cb Bug 1315170 - gtestify dom/security/test/TestCSPParser.cpp. r=francois. 2016-11-04 17:02:26 +11:00
Nicholas Nethercote 39ab4bab87 Bug 1314870 - gtestify TestWebGLElementArrayCache.cpp. r=jgilbert. 2016-11-04 14:38:59 +11:00
Nicholas Nethercote ba4f09d5a8 Bug 1314827 (attempt 2) - gtestify dom/base/test/*.cpp. r=baku. 2016-11-04 14:36:23 +11:00
Eric Rahm dfce577e15 Bug 1313483 - Convert XPCOM test TestThreadUtils to a gtest. r=froydnj
MozReview-Commit-ID: EA0SNRX2EXC
2016-11-04 16:24:59 -07:00
Eric Rahm af1bf442a8 Bug 1313482 - Convert XPCOM test TestTextFormatter to a gtest. r=froydnj
MozReview-Commit-ID: FQ5K3jvqb7c
2016-11-04 16:24:42 -07:00
Eric Rahm 7c8141fb08 Bug 1313481 - Convert XPCOM test TestTArray to a gtest. r=froydnj
MozReview-Commit-ID: 8fB9Wi9ghD0
2016-11-04 16:24:27 -07:00