From 31793b8f3aaaa684134003a891ac642a5ed264a2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 2 Aug 2019 09:21:24 +0200 Subject: AK: Fix typo in the WeakPtr test. Behavior was actually correct. Also remove an unused variable. --- AK/Tests/TestWeakPtr.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'AK/Tests') diff --git a/AK/Tests/TestWeakPtr.cpp b/AK/Tests/TestWeakPtr.cpp index f3145544ef..2a59e88fff 100644 --- a/AK/Tests/TestWeakPtr.cpp +++ b/AK/Tests/TestWeakPtr.cpp @@ -3,10 +3,6 @@ #include #include -namespace AK{ -int g_weaklinks = 0; -} - class SimpleWeakable : public Weakable { public: SimpleWeakable() {} @@ -49,7 +45,7 @@ TEST_CASE(weakptr_move) EXPECT_EQ(weak2.ptr(), &simple); } - EXPECT_EQ(weak2.is_null(), false); + EXPECT_EQ(weak2.is_null(), true); fprintf(stderr, "ok\n"); } -- cgit v1.2.3