summaryrefslogtreecommitdiff
path: root/AK/Tests/TestWeakPtr.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-02 09:21:24 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-02 09:21:42 +0200
commit31793b8f3aaaa684134003a891ac642a5ed264a2 (patch)
tree712113ef33434f073bd10151f97b7861980b3b9a /AK/Tests/TestWeakPtr.cpp
parent4e593006503fce1ef12a6eb3390c65e01256e766 (diff)
downloadserenity-31793b8f3aaaa684134003a891ac642a5ed264a2.zip
AK: Fix typo in the WeakPtr test. Behavior was actually correct.
Also remove an unused variable.
Diffstat (limited to 'AK/Tests/TestWeakPtr.cpp')
-rw-r--r--AK/Tests/TestWeakPtr.cpp6
1 files changed, 1 insertions, 5 deletions
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 <AK/Weakable.h>
#include <AK/WeakPtr.h>
-namespace AK{
-int g_weaklinks = 0;
-}
-
class SimpleWeakable : public Weakable<SimpleWeakable> {
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");
}