This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Fix broken SymInitialize unittest
ClosedPublic

Authored by etienneb on Jul 20 2016, 1:13 PM.

Details

Summary

By adding the initialisation of the symbolisation library (DbgHelp)
we are swapping the order in which both warnings are produced.

We can't use CHECK-NEXT as the dbghelp warning is multiline.

Diff Detail

Event Timeline

etienneb updated this revision to Diff 64741.Jul 20 2016, 1:13 PM
etienneb retitled this revision from to [compiler-rt] Fix broken SymInitialize unittest.
etienneb updated this object.
etienneb added a reviewer: rnk.
rnk added inline comments.Jul 20 2016, 1:58 PM
test/asan/TestCases/Windows/report_after_syminitialize.cc
12

Doesn't this fail, though?

etienneb marked an inline comment as done.Jul 20 2016, 2:17 PM
etienneb added inline comments.
test/asan/TestCases/Windows/report_after_syminitialize.cc
12

No, it's not.

Nothing got called before we reach line 15 (write to invalid location).
Than, the report function is calling the initialized function to load dbghelp.

So, it's not affecting this test.

rnk accepted this revision.Jul 20 2016, 2:19 PM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 20 2016, 2:19 PM
etienneb closed this revision.Jul 20 2016, 7:40 PM
etienneb marked an inline comment as done.