Fix a "set but not used" compiler warning in a test
Add a missing assertion whose absence made the test ineffective. Make the test a little stricter too. BUG=none TEST="make check" to run the test + use "-Wall -Werror" Review URL: https://breakpad.appspot.com/592003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1180 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0daf8175df
commit
e775f8bb16
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue