mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-04-06 16:20:23 +08:00
* tests/mdemo-exec.test: Also try absolute library names.
* tests/mdemo/main.c (test_dl, main): Try lt_dlopenext as well. * THANKS: Update. Report by Brian Barrett.
This commit is contained in:
parent
6baa7daaf3
commit
28be809ea3
@ -1,3 +1,10 @@
|
||||
2007-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* tests/mdemo-exec.test: Also try absolute library names.
|
||||
* tests/mdemo/main.c (test_dl, main): Try lt_dlopenext as well.
|
||||
* THANKS: Update.
|
||||
Report by Brian Barrett.
|
||||
|
||||
2007-07-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* doc/fdl.texi: Update to GFDL 1.2.
|
||||
|
1
THANKS
1
THANKS
@ -71,6 +71,7 @@
|
||||
Andrey Slepuhin pooh@msu.ru
|
||||
Aneesh Kumar K.V kvaneesh@hotmail.com
|
||||
Brad Smith brad@comstyle.com
|
||||
Brian Barrett brbarret@osl.iu.edu
|
||||
Bruno Haible haible@ilog.fr
|
||||
Carl D. Roth roth@cse.ucsc.edu
|
||||
Chris P. Ross cross@eng.us.uu.net
|
||||
|
@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
# mdemo-exec.test - check that programs in the mdemo subdirectory are viable
|
||||
#
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2003
|
||||
#
|
||||
# This file is part of GNU Libtool.
|
||||
@ -33,5 +33,7 @@ func_exec "tests/mdemo/mdemo_static$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfo
|
||||
"try_iterate: .*libfoo2"
|
||||
func_exec "tests/mdemo/mdemo$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
|
||||
"try_iterate: .*libfoo2"
|
||||
func_exec "tests/mdemo/mdemo_static$EXEEXT `pwd`/tests/mdemo/foo1.la `pwd`/tests/mdemo/libfoo2.la"
|
||||
func_exec "tests/mdemo/mdemo$EXEEXT `pwd`/tests/mdemo/foo1.la `pwd`/tests/mdemo/libfoo2.la"
|
||||
|
||||
exit $exec_status
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* main.c -- mdemo test program
|
||||
|
||||
Copyright (C) 1998-2000, 2006 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2000, 2006, 2007 Free Software Foundation, Inc.
|
||||
Written by Thomas Tanner, 1998
|
||||
|
||||
This file is part of GNU Libtool.
|
||||
@ -32,7 +32,7 @@ extern int myfunc (void);
|
||||
LT_END_C_DECLS
|
||||
|
||||
int
|
||||
test_dl (char *filename)
|
||||
test_dl (char *filename, int test_ext)
|
||||
{
|
||||
lt_dlhandle handle;
|
||||
const lt_dlinfo *info;
|
||||
@ -42,7 +42,11 @@ test_dl (char *filename)
|
||||
int *pnothing = 0;
|
||||
int ret = 0;
|
||||
|
||||
handle = lt_dlopen(filename);
|
||||
if (test_ext)
|
||||
handle = lt_dlopenext (filename);
|
||||
else
|
||||
handle = lt_dlopen (filename);
|
||||
|
||||
if (!handle) {
|
||||
fprintf (stderr, "can't open the module %s!\n", filename);
|
||||
fprintf (stderr, "error was: %s\n", lt_dlerror());
|
||||
@ -206,6 +210,7 @@ main (int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
int ret = 0;
|
||||
char *p;
|
||||
|
||||
printf ("Welcome to GNU libtool mdemo!\n");
|
||||
|
||||
@ -220,8 +225,18 @@ main (int argc, char **argv)
|
||||
}
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
if (test_dl(argv[i]))
|
||||
{
|
||||
if (test_dl(argv[i], 0))
|
||||
ret = 1;
|
||||
p = strrchr(argv[i], '.');
|
||||
if (p)
|
||||
{
|
||||
*p = '\0';
|
||||
if (test_dl(argv[i], 1))
|
||||
ret = 1;
|
||||
*p = '.';
|
||||
}
|
||||
}
|
||||
|
||||
if (test_dlself())
|
||||
ret = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user