tests: Use error, not assert, when trying to print a non-base type DIE.
authorMark Wielaard <mark@klomp.org>
Wed, 6 Jun 2018 21:35:35 +0000 (23:35 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 10:03:14 +0000 (12:03 +0200)
commit07d2098890e9113079bae64f6fc7f4069f7b12cd
treedb486d7167a4eb824b0876ebd4eb0bd87c96fdff
parent7ae7ec1ad75dd0689b5371c2e157165c4c7944c9
tests: Use error, not assert, when trying to print a non-base type DIE.

When using the varlocs test with a fuzzer using assert for internal
sanity checks is great to find issues. But when encountering bad data
using an assert is wrong. Just use error to show we handle the data
correctly (by reporting it is bad, instead of crashing).

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/varlocs.c