From: Theodore Ts'o Date: Sun, 16 Dec 2007 03:09:48 +0000 (-0500) Subject: libss: Fix "make check" test case to work portably X-Git-Tag: v1.40.4~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bef406047dcd20ff6910714fea986ca29efccb73;p=thirdparty%2Fe2fsprogs.git libss: Fix "make check" test case to work portably The "make check" test in lib/ss would fail if '.' is not in the user's PATH, and if the libss shared library had not yet been installed yet. Addresses-Sourceforge-Bug: #1848974 Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ss/Makefile.in b/lib/ss/Makefile.in index 276acc3ed..aa4f94be2 100644 --- a/lib/ss/Makefile.in +++ b/lib/ss/Makefile.in @@ -170,7 +170,7 @@ test_ss: test_ss.o test_cmd.o $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) check:: all test_ss @echo " RUN TEST test_ss" - @(test_ss -f $(srcdir)/test_script >& test_out; exit 0) + @(LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./test_ss -f $(srcdir)/test_script >& test_out; exit 0) @if ! diff test_out $(srcdir)/test_script_expected > test.diff; then \ echo "Regression test for ss library failed!"; exit 1 ; fi