aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/testdata/stabs_reader_unittest.input4
diff options
context:
space:
mode:
authorjimblandy@gmail.com <jimblandy@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-15 16:54:44 +0000
committerjimblandy@gmail.com <jimblandy@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-15 16:54:44 +0000
commit7f941f990aa436c7d736f19a2f5579cd85933ec6 (patch)
treeed8f40ee4483bc3dcd68b24b3ba1e399b02f11ab /src/common/linux/testdata/stabs_reader_unittest.input4
parentIssue 25003: Linux dumper: Fix infinite loop in stabs parser. (diff)
downloadbreakpad-7f941f990aa436c7d736f19a2f5579cd85933ec6.tar.xz
Linux dumper: Add unit tests for google_breakpad::StabsReader.
The test system is based on Google C++ Testing Framework and the Google C++ Mocking Framework. This includes a parser that turns human-readable input files ("mock stabs") into .stab and .stabstr section contents, which we can then pass to a StabsReader instance, using a handler object written with GoogleMock. The 'make check' target in src/tools/linux/dump_syms runs this. The supplied input file is pretty small, but I've done coverage testing, and it does cover the parser. I thought the mock stabs parser would be less elaborate than it turned out to be. Lesson learned. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@444 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/linux/testdata/stabs_reader_unittest.input4')
-rw-r--r--src/common/linux/testdata/stabs_reader_unittest.input41
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/linux/testdata/stabs_reader_unittest.input4 b/src/common/linux/testdata/stabs_reader_unittest.input4
new file mode 100644
index 00000000..dfdbf677
--- /dev/null
+++ b/src/common/linux/testdata/stabs_reader_unittest.input4
@@ -0,0 +1 @@
+SO 10 11 0x12 build-directory/