Fix RefCountedTest not initializing deleted.

This commit is contained in:
Corentin Wallez 2017-05-29 12:03:08 -07:00 committed by Corentin Wallez
parent 944b60fb75
commit 7815d78044
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ using namespace backend;
TEST(Math, ScanForward) {
// Test extrema
ASSERT_EQ(ScanForward(1), 0);
ASSERT_EQ(ScanForward(0x8000000000000000), 63);
ASSERT_EQ(ScanForward(0x80000000), 31);
// Test with more than one bit set.
ASSERT_EQ(ScanForward(256), 8);

View File

@ -103,7 +103,7 @@ TEST(Ref, BoolConversion) {
// Test Ref's copy constructor
TEST(Ref, CopyConstructor) {
bool deleted;
bool deleted = false;
RCTest* original = new RCTest(&deleted);
Ref<RCTest> source(original);
@ -121,7 +121,7 @@ TEST(Ref, CopyConstructor) {
// Test Ref's copy assignment
TEST(Ref, CopyAssignment) {
bool deleted;
bool deleted = false;
RCTest* original = new RCTest(&deleted);
Ref<RCTest> source(original);
@ -143,7 +143,7 @@ TEST(Ref, CopyAssignment) {
// Test Ref's move constructor
TEST(Ref, MoveConstructor) {
bool deleted;
bool deleted = false;
RCTest* original = new RCTest(&deleted);
Ref<RCTest> source(original);
@ -160,7 +160,7 @@ TEST(Ref, MoveConstructor) {
// Test Ref's move assignment
TEST(Ref, MoveAssignment) {
bool deleted;
bool deleted = false;
RCTest* original = new RCTest(&deleted);
Ref<RCTest> source(original);