aboutsummaryrefslogtreecommitdiff
path: root/elf/resolvfail.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/resolvfail.c')
-rw-r--r--elf/resolvfail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/resolvfail.c b/elf/resolvfail.c
index 9dd5cbe3d0..ebd635d153 100644
--- a/elf/resolvfail.c
+++ b/elf/resolvfail.c
@@ -1,4 +1,5 @@
#include <dlfcn.h>
+#include <stdio.h>
static const char obj[] = "testobj1.so";
@@ -20,6 +21,11 @@ main (void)
puts ("dlsym() did not fail");
return 1;
}
+ else if (dlerror () == NULL)
+ {
+ puts ("dlerror() didn't return a string");
+ return 1;
+ }
return 0;
}