tests: mark 'syntax of .la files' as XFAIL, expose failure.

* tests/lalib-syntax.at (syntax of .la files): Assert that the
string returned by lt_dlerror after a failure is non-NULL, so
the failure shows up on systems other than Solaris.  Mark test
as expected to fail.
Suggested by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2010-08-30 22:42:11 +02:00
parent e91e2dec63
commit 730c1343a4
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2010-08-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
tests: mark 'syntax of .la files' as XFAIL, expose failure.
* tests/lalib-syntax.at (syntax of .la files): Assert that the
string returned by lt_dlerror after a failure is non-NULL, so
the failure shows up on systems other than Solaris. Mark test
as expected to fail.
Suggested by Bob Friesenhahn.
2010-08-30 Eric Blake <eblake@redhat.com>
Simplify recent configure quoting portability workaround.

View File

@ -1,6 +1,6 @@
# lalib-syntax.at -- parsing .la files robustly -*- Autotest -*-
#
# Copyright (C) 2009 Free Software Foundation, Inc.
# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
#
# This file is part of GNU Libtool.
#
@ -25,9 +25,12 @@ AT_SETUP([syntax of .la files])
AT_KEYWORDS([libtool])
AT_KEYWORDS([libltdl])
AT_XFAIL_IF([:]) dnl libltdl does not consistently return non-NULL lt_dlerror
AT_DATA([main.c],
[[#include <ltdl.h>
#include <stdio.h>
#include <assert.h>
int
main (int argc, char* argv[])
@ -50,7 +53,9 @@ main (int argc, char* argv[])
}
else
{
printf ("plugin failed to open: %s\n", lt_dlerror());
const char *error = lt_dlerror ();
assert (error != NULL);
printf ("plugin failed to open: %s\n", error);
err = 1;
}
lt_dlexit ();