Mark Seaborn
2012/02/09 22:24:55
I don't like having glibc line numbers in golden f
I don't like having glibc line numbers in golden files. It will just create
problems for anyone updating DEPS or running the tests on different libc
versions.
My suggestion: Have a Python test script that does this:
* imports decode_dump.py
* Calls a function in decode_dump to get an unformatted backtrace as a Python
list.
* Assert that the list starts with the function names "layer5", "layer4" etc.
with the filename "untrusted_crash_dump_test.c".
* Don't embed line numbers in the test. But you can check a couple of line
numbers by reading the line from the file (using Python's linecache) and
asserting that the line contains a special comment.
* Also check that you can format the backtrace without getting a Python
exception (but don't look at the formatted backtrace itself).
Issue 9316125: Adding untrusted crash dump / stack trace tests.
(Closed)
Created 8 years, 10 months ago by bradn
Modified 8 years, 10 months ago
Reviewers: Mark Seaborn, Nick Bray (chromium)
Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Comments: 185