Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/libexec/ld.elf_so check that we can dlopen() the linkm...



details:   https://anonhg.NetBSD.org/src/rev/1ab3e2a8cfe1
branches:  trunk
changeset: 763567:1ab3e2a8cfe1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 25 14:47:31 2011 +0000

description:
check that we can dlopen() the linkmap name, too

diffstat:

 tests/libexec/ld.elf_so/t_dlinfo.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 841407bb9154 -r 1ab3e2a8cfe1 tests/libexec/ld.elf_so/t_dlinfo.c
--- a/tests/libexec/ld.elf_so/t_dlinfo.c        Fri Mar 25 14:45:21 2011 +0000
+++ b/tests/libexec/ld.elf_so/t_dlinfo.c        Fri Mar 25 14:47:31 2011 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index