summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/allfcts.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 11974e15..c549fa0b 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-05 Mark Wielaard <[email protected]>
+
+ * allfcts.c (main): Correct dwarf_getfuncs return value check.
+
2013-10-10 Mark Wielaard <[email protected]>
Josh Stone <[email protected]>
diff --git a/tests/allfcts.c b/tests/allfcts.c
index 7803722f..10e0f07b 100644
--- a/tests/allfcts.c
+++ b/tests/allfcts.c
@@ -63,7 +63,7 @@ main (int argc, char *argv[])
{
doff = dwarf_getfuncs (die, cb, NULL, doff);
}
- while (doff > 0);
+ while (doff != 0 && dwarf_errno () == 0);
off = noff;
}