Module Name: src
Committed By: pooka
Date: Fri Mar 25 14:47:31 UTC 2011
Modified Files:
src/tests/libexec/ld.elf_so: t_dlinfo.c
Log Message:
check that we can dlopen() the linkmap name, too
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/libexec/ld.elf_so/t_dlinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/libexec/ld.elf_so/t_dlinfo.c
diff -u src/tests/libexec/ld.elf_so/t_dlinfo.c:1.3 src/tests/libexec/ld.elf_so/t_dlinfo.c:1.4
--- src/tests/libexec/ld.elf_so/t_dlinfo.c:1.3 Fri Mar 25 14:45:21 2011
+++ src/tests/libexec/ld.elf_so/t_dlinfo.c Fri Mar 25 14:47:31 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dlinfo.c,v 1.3 2011/03/25 14:45:21 pooka Exp $ */
+/* $NetBSD: t_dlinfo.c,v 1.4 2011/03/25 14:47:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -106,6 +106,8 @@
break;
ATF_REQUIRE_MSG(map, "dlopen()d object not found from linkmap");
+ ATF_REQUIRE_MSG(dlopen(map->l_name, RTLD_LAZY) != NULL,
+ "could not dlopen() name in linkmap");
}
ATF_TP_ADD_TCS(tp)