diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc b/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc index db11651c..04da30b4 100644 --- a/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +++ b/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -86,10 +86,11 @@ TEST(LinuxPtraceDumperTest, ThreadList) { bool found = false; for (size_t i = 0; i < dumper.threads().size(); ++i) { if (dumper.threads()[i] == getpid()) { + ASSERT_FALSE(found); found = true; - break; } } + ASSERT_TRUE(found); } // Helper stack class to close a file descriptor and unmap