]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: print backtrace in case of failure
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 12:24:04 +0000 (15:24 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:29 +0000 (19:12 +0300)
commit9b5d30ea9feb311d74857946dd9bb22aefb2f64a
tree92144bcb29d1e7e6222788be7f856bc041b9ba25
parent4623f7aec7c78ff93ad4ab9878571d685b51dfaa
fs-tests: integck: print backtrace in case of failure

This patch teaches the 'CHECK()' macro to print the back-trace in
case of failure which is sometimes very useful for debugging. This
patch also adds a helper function for the 'CHECK()' macro because
otherwise it becomes too large.

Note, since all functions in the test are static, the stack trace
does not really show symbols.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c