bug-gnulib
[Top][All Lists]
Advanced

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

fix tests link errors


From: Bruno Haible
Subject: fix tests link errors
Date: Fri, 17 Jun 2011 12:45:27 +0200
User-agent: KMail/1.9.9

The test with --create-megatestdir gave a couple of link errors, that can be
reproduced by testing a single module:


$ ./gnulib-tool --test --with-tests ceil-ieee
...
gcc  -g -O2   -o test-ceil-ieee test-ceil-ieee.o ../gllib/libgnu.a @FLOOR_LIBM@ 
gcc: @FLOOR_LIBM@: No such file or directory
make[4]: *** [test-ceil-ieee] Error 1


This one was a copy&paste mistake.


$ ./gnulib-tool --test --with-tests chown
...
gcc  -g -O2   -o test-chown test-chown.o ../gllib/libgnu.a @LIBINTL@ 
gcc: @LIBINTL@: No such file or directory
make[4]: *** [test-chown] Error 1


$ ./gnulib-tool --test --with-tests utimens
...
gcc  -g -O2   -o test-utimens test-utimens.o ../gllib/libgnu.a -lrt @LIBINTL@ 
gcc: @LIBINTL@: No such file or directory
make[4]: *** [test-utimens] Error 1


$ ./gnulib-tool --test --with-tests futimens
...
gcc  -g -O2   -o test-futimens test-futimens.o ../gllib/libgnu.a -lrt @LIBINTL@ 
gcc: @LIBINTL@: No such file or directory
make[4]: *** [test-futimens] Error 1


This means that earlier, 'chown-tests' etc. depended indirectly on module
'gettext-h', and this dependency does not exist any more. So this change is
safe also for other platforms:


2011-06-17  Bruno Haible  <address@hidden>

        Fix tests link errors.
        * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
        * modules/chown-tests (Makefile.am): Don't link test-chown with
        LIBINTL.
        * modules/lchown-tests (Makefile.am): Don't link test-lchown with
        LIBINTL.
        * modules/utimens-tests (Makefile.am): Don't link test-utimens with
        LIBINTL.
        * modules/futimens-tests (Makefile.am): Don't link test-futimens with
        LIBINTL.

--- modules/ceil-ieee-tests.orig        Fri Jun 17 12:38:11 2011
+++ modules/ceil-ieee-tests     Fri Jun 17 12:36:54 2011
@@ -12,4 +12,4 @@
 Makefile.am:
 TESTS += test-ceil-ieee
 check_PROGRAMS += test-ceil-ieee
-test_ceil_ieee_LDADD = $(LDADD) @FLOOR_LIBM@
+test_ceil_ieee_LDADD = $(LDADD) @CEIL_LIBM@
--- modules/chown-tests.orig    Fri Jun 17 12:38:11 2011
+++ modules/chown-tests Fri Jun 17 12:36:54 2011
@@ -21,4 +21,3 @@
 Makefile.am:
 TESTS += test-chown
 check_PROGRAMS += test-chown
-test_chown_LDADD = $(LDADD) @LIBINTL@
--- modules/futimens-tests.orig Fri Jun 17 12:38:11 2011
+++ modules/futimens-tests      Fri Jun 17 12:36:54 2011
@@ -17,4 +17,4 @@
 Makefile.am:
 TESTS += test-futimens
 check_PROGRAMS += test-futimens
-test_futimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
+test_futimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
--- modules/lchown-tests.orig   Fri Jun 17 12:38:11 2011
+++ modules/lchown-tests        Fri Jun 17 12:36:54 2011
@@ -20,4 +20,3 @@
 Makefile.am:
 TESTS += test-lchown
 check_PROGRAMS += test-lchown
-test_lchown_LDADD = $(LDADD) @LIBINTL@
--- modules/utimens-tests.orig  Fri Jun 17 12:38:11 2011
+++ modules/utimens-tests       Fri Jun 17 12:36:54 2011
@@ -19,4 +19,4 @@
 Makefile.am:
 TESTS += test-utimens
 check_PROGRAMS += test-utimens
-test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
+test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)

-- 
In memoriam The victims of the East German uprising 
<http://en.wikipedia.org/wiki/Uprising_of_1953_in_East_Germany>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]