summaryrefslogtreecommitdiffstats
path: root/tests/getphdrnum.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2020-03-23 23:57:51 +0100
committerMark Wielaard <[email protected]>2020-03-23 23:57:51 +0100
commit7db645ba72f5711174dbf712003b9600009e5ea7 (patch)
tree306ca2fbc3e6c9706acbd1f3cf4ea8e878fbe27d /tests/getphdrnum.c
parent7982afbc6ae578e86c235319e79c536a6d867118 (diff)
tests: Fix getphdrnum and run-lfs-symbols.sh testcase.
getphdrnum.c didn't include config.h which is why run-lfs-symbols.sh flagged it for containing bad (non-lfs) symbols. run-lfs-symbols.sh was still checking the libebl modules, which we don't create anymore. But it didn't fail the test for non-existing tests. Add some extra logging and explicitly check files exist. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/getphdrnum.c')
-rw-r--r--tests/getphdrnum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/getphdrnum.c b/tests/getphdrnum.c
index 4d4bb397..07f75db0 100644
--- a/tests/getphdrnum.c
+++ b/tests/getphdrnum.c
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include <fcntl.h>
#include <libelf.h>
#include <stdio.h>