From be2b98186babefdce7bfbe969e9042a2dc5f5420 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Sat, 21 Jul 2018 14:20:13 +0000 Subject: [PATCH] Bug 1207696 Part 2b - Don't record activity in atomics unit tests, r=waldo. --HG-- extra : rebase_source : 8fb15b2d0d73adf63ed3251f55c0cbbbcf0c9c18 --- mfbt/tests/TestAtomics.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mfbt/tests/TestAtomics.cpp b/mfbt/tests/TestAtomics.cpp index e23b3d51716c..097fdc1b1220 100644 --- a/mfbt/tests/TestAtomics.cpp +++ b/mfbt/tests/TestAtomics.cpp @@ -14,6 +14,7 @@ using mozilla::MemoryOrdering; using mozilla::Relaxed; using mozilla::ReleaseAcquire; using mozilla::SequentiallyConsistent; +using mozilla::recordreplay::Behavior; #define A(a,b) MOZ_RELEASE_ASSERT(a,b) @@ -21,7 +22,7 @@ template static void TestTypeWithOrdering() { - Atomic atomic(5); + Atomic atomic(5); A(atomic == 5, "Atomic variable did not initialize"); // Test atomic increment @@ -87,7 +88,7 @@ static void TestPointerWithOrdering() { T array1[10]; - Atomic atomic(array1); + Atomic atomic(array1); A(atomic == array1, "Atomic variable did not initialize"); // Test atomic increment @@ -142,7 +143,7 @@ template static void TestEnumWithOrdering() { - Atomic atomic(EnumType_2); + Atomic atomic(EnumType_2); A(atomic == EnumType_2, "Atomic variable did not initialize"); // Test assignment @@ -180,7 +181,7 @@ template static void TestEnumClassWithOrdering() { - Atomic atomic(EnumClass::Value2); + Atomic atomic(EnumClass::Value2); A(atomic == EnumClass::Value2, "Atomic variable did not initialize"); // Test assignment @@ -210,7 +211,7 @@ template static void TestBoolWithOrdering() { - Atomic atomic(false); + Atomic atomic(false); A(atomic == false, "Atomic variable did not initialize"); // Test assignment