Fix RefCountedTest not initializing deleted.
This commit is contained in:
parent
944b60fb75
commit
7815d78044
|
@ -22,7 +22,7 @@ using namespace backend;
|
||||||
TEST(Math, ScanForward) {
|
TEST(Math, ScanForward) {
|
||||||
// Test extrema
|
// Test extrema
|
||||||
ASSERT_EQ(ScanForward(1), 0);
|
ASSERT_EQ(ScanForward(1), 0);
|
||||||
ASSERT_EQ(ScanForward(0x8000000000000000), 63);
|
ASSERT_EQ(ScanForward(0x80000000), 31);
|
||||||
|
|
||||||
// Test with more than one bit set.
|
// Test with more than one bit set.
|
||||||
ASSERT_EQ(ScanForward(256), 8);
|
ASSERT_EQ(ScanForward(256), 8);
|
||||||
|
|
|
@ -103,7 +103,7 @@ TEST(Ref, BoolConversion) {
|
||||||
|
|
||||||
// Test Ref's copy constructor
|
// Test Ref's copy constructor
|
||||||
TEST(Ref, CopyConstructor) {
|
TEST(Ref, CopyConstructor) {
|
||||||
bool deleted;
|
bool deleted = false;
|
||||||
RCTest* original = new RCTest(&deleted);
|
RCTest* original = new RCTest(&deleted);
|
||||||
|
|
||||||
Ref<RCTest> source(original);
|
Ref<RCTest> source(original);
|
||||||
|
@ -121,7 +121,7 @@ TEST(Ref, CopyConstructor) {
|
||||||
|
|
||||||
// Test Ref's copy assignment
|
// Test Ref's copy assignment
|
||||||
TEST(Ref, CopyAssignment) {
|
TEST(Ref, CopyAssignment) {
|
||||||
bool deleted;
|
bool deleted = false;
|
||||||
RCTest* original = new RCTest(&deleted);
|
RCTest* original = new RCTest(&deleted);
|
||||||
|
|
||||||
Ref<RCTest> source(original);
|
Ref<RCTest> source(original);
|
||||||
|
@ -143,7 +143,7 @@ TEST(Ref, CopyAssignment) {
|
||||||
|
|
||||||
// Test Ref's move constructor
|
// Test Ref's move constructor
|
||||||
TEST(Ref, MoveConstructor) {
|
TEST(Ref, MoveConstructor) {
|
||||||
bool deleted;
|
bool deleted = false;
|
||||||
RCTest* original = new RCTest(&deleted);
|
RCTest* original = new RCTest(&deleted);
|
||||||
|
|
||||||
Ref<RCTest> source(original);
|
Ref<RCTest> source(original);
|
||||||
|
@ -160,7 +160,7 @@ TEST(Ref, MoveConstructor) {
|
||||||
|
|
||||||
// Test Ref's move assignment
|
// Test Ref's move assignment
|
||||||
TEST(Ref, MoveAssignment) {
|
TEST(Ref, MoveAssignment) {
|
||||||
bool deleted;
|
bool deleted = false;
|
||||||
RCTest* original = new RCTest(&deleted);
|
RCTest* original = new RCTest(&deleted);
|
||||||
|
|
||||||
Ref<RCTest> source(original);
|
Ref<RCTest> source(original);
|
||||||
|
|
Loading…
Reference in New Issue