Skip to content

Commit

Permalink
Fix valgrind-check when building from the source directory
Browse files Browse the repository at this point in the history
Use a variable that is guaranteed to have an absolute
path (abs_top_srcdir) instead of top_srcdir, which may have a relative
path when the build directory is identical to the source directory.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
  • Loading branch information
tuliom committed Dec 29, 2021
1 parent c2ecc0d commit ad62a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ doc_target = doc
endif DX_COND_doc

VALGRIND_FLAGS="--leak-check=full \
--suppressions=$(top_srcdir)/test/valgrind.supp \
--suppressions=$(abs_top_srcdir)/test/valgrind.supp \
--error-exitcode=1"

all: $(SUBDIRS) $(doc_target)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ dist_doc_DATA = licenses/APACHE-2.0.txt licenses/gpl-2.0.txt
include_HEADERS = libnxz.h
@DX_COND_doc_TRUE@doc_target = doc
VALGRIND_FLAGS = "--leak-check=full \
--suppressions=$(top_srcdir)/test/valgrind.supp \
--suppressions=$(abs_top_srcdir)/test/valgrind.supp \
--error-exitcode=1"

@DX_COND_doc_TRUE@MOSTLYCLEANFILES = $(DX_CLEANFILES)
Expand Down

0 comments on commit ad62a0b

Please sign in to comment.