summaryrefslogtreecommitdiffstats
path: root/tests/get-files.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get-files.c')
-rw-r--r--tests/get-files.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/get-files.c b/tests/get-files.c
index 04091733..fa65aa93 100644
--- a/tests/get-files.c
+++ b/tests/get-files.c
@@ -24,6 +24,7 @@
#include ELFUTILS_HEADER(dw)
#include <stdio.h>
#include <unistd.h>
+#include "../libdw/libdwP.h"
int
@@ -76,6 +77,13 @@ main (int argc, char *argv[])
break;
}
+ if (die->cu->lines != NULL)
+ {
+ printf ("%s: dwarf_getsrcfiles should not get lines\n", argv[cnt]);
+ result = 1;
+ break;
+ }
+
const char *const *dirs;
size_t ndirs;
if (dwarf_getsrcdirs (files, &dirs, &ndirs) != 0)