+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.
# 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.
#
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[])
}
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 ();