From: Dmitry V. Levin Date: Tue, 11 Apr 2017 06:55:51 +0000 (+0000) Subject: tests: robustify gen_tests.sh against in-tree builds X-Git-Tag: v4.17~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5c73d296d05203f4f7ab65fd46e0f5f1e52655d;p=strace tests: robustify gen_tests.sh against in-tree builds * tests/gen_tests.sh: Use abs_srcdir instead of srcdir to construct a path to gen_tests.sh in implicit make rules. --- diff --git a/tests/gen_tests.sh b/tests/gen_tests.sh index e70bccbe..a726c07a 100755 --- a/tests/gen_tests.sh +++ b/tests/gen_tests.sh @@ -92,7 +92,7 @@ if [ -n "$names" ]; then printf ' %s.gen.test' $names echo target='$(srcdir)/%s.gen.test' - dep1='$(srcdir)/gen_tests.sh' + dep1='$(abs_srcdir)/gen_tests.sh' dep2='$(srcdir)/gen_tests.in' recipe='$(AM_V_GEN) $^ $@' printf "\\n$target: $dep1 $dep2\\n\\t$recipe\\n" $names