summaryrefslogtreecommitdiff
path: root/tests/stack_protector_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stack_protector_test.cpp')
-rw-r--r--tests/stack_protector_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stack_protector_test.cpp b/tests/stack_protector_test.cpp
index 5f5a24174..34e3c1153 100644
--- a/tests/stack_protector_test.cpp
+++ b/tests/stack_protector_test.cpp
@@ -74,14 +74,14 @@ TEST(stack_protector, same_guard_per_thread) {
size_t thread_count = 9;
for (size_t i = 1; i < thread_count; ++i) {
pthread_t t;
- ASSERT_EQ(0, pthread_create(&t, NULL, [](void* arg) -> void* {
+ ASSERT_EQ(0, pthread_create(&t, nullptr, [](void* arg) -> void* {
stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg);
checker->Check();
return nullptr;
}, &checker));
void* result;
ASSERT_EQ(0, pthread_join(t, &result));
- ASSERT_EQ(NULL, result);
+ ASSERT_EQ(nullptr, result);
}
ASSERT_EQ(thread_count, checker.tids.size());