bug-gnulib
[Top][All Lists]
Advanced

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

Re: Problem with valgrind-tests: relies on bash not causing error


From: Reuben Thomas
Subject: Re: Problem with valgrind-tests: relies on bash not causing error
Date: Wed, 12 Apr 2017 15:26:58 +0100

On 12 April 2017 at 15:23, Bruno Haible <address@hidden> wrote:
Hi Reuben,

> This is a separate issue, though: the real problem here is that a way is
> needed to run libtool wrappers with libtool

In GNU gettext, I never succeeded in making valgrind work with the libtool
wrappers; instead I noted
  # You should build with --disable-shared when using valgrind.

See [1], lines 170..199.

Bruno

[1] http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=gettext-tools/tests/Makefile.am

This is not feasible for ​Enchant, which is based around dynamically-loaded libraries.

​However, I just used a one line shell script, called run-test:

#!/bin/sh
libtool --mode=execute $VALGRIND "$@"
​and then in Makefile.am:

​LOG_COMPILER = $(srcdir)/run-test

It is working for me, and I'm happily fixing the bugs found by Valgrind.

--

reply via email to

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