Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84)

Issue 884002: disable unittests under ASAN that use memory crashes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by vapier
Modified:
10 years, 11 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

disable unittests under ASAN that use memory crashes

There are a bunch of tests that use invalid memory acesses (on purpose)
to trigger a crash so that we can detect things are dumped correctly.
When we run under ASAN, it catches those accesses and the breaks the
testing flow.

For now, use the existing ADDRESS_SANITIZER symbol to disable more tests.
Ideally we'd use a compile-time attribute to disable ASAN on a few funcs,
but that seems to be broken atm.

BUG=chromium:293519
BUG=chromium:304575
TEST=ran unittests under ASAN and they now pass
TEST=ran unittests w/out asan/clang and they still pass
R=benchan@chromium.org

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1255

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/breakpad_googletest_includes.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
M src/client/linux/handler/exception_handler_unittest.cc View 8 chunks +14 lines, -5 lines 0 comments Download
M src/client/windows/unittests/exception_handler_death_test.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3
vapier
10 years, 11 months ago #1
Ben Chan
lgtm
10 years, 11 months ago #2
vapier
10 years, 11 months ago #3
Message was sent while issue was closed.
Committed patchset #2 manually as r1255 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted