Module: xenomai-3 Branch: stable-3.0.x Commit: e6b013db752b9a67f1394639395086f13b42bb3a URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=e6b013db752b9a67f1394639395086f13b42bb3a
Author: Henning Schild <henning.sch...@siemens.com> Date: Fri Feb 16 14:13:00 2018 +0100 smokey/posix-fork: fix binary path for configure --with-testdir ./configure allows to place test binaries in a non-default location. Change the testcase to still find the "smokey" executable. Signed-off-by: Henning Schild <henning.sch...@siemens.com> --- testsuite/smokey/posix-fork/Makefile.am | 5 +++-- testsuite/smokey/posix-fork/posix-fork.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/testsuite/smokey/posix-fork/Makefile.am b/testsuite/smokey/posix-fork/Makefile.am index c4232cf..516c243 100644 --- a/testsuite/smokey/posix-fork/Makefile.am +++ b/testsuite/smokey/posix-fork/Makefile.am @@ -5,6 +5,7 @@ libposix_fork_a_SOURCES = posix-fork.c CCLD = $(top_srcdir)/scripts/wrap-link.sh $(CC) -libposix_fork_a_CPPFLAGS = \ - @XENO_USER_CFLAGS@ \ +libposix_fork_a_CPPFLAGS = \ + @XENO_USER_CFLAGS@ \ + -DXENO_TEST_DIR='"$(XENO_TEST_DIR)"' \ -I$(top_srcdir)/include diff --git a/testsuite/smokey/posix-fork/posix-fork.c b/testsuite/smokey/posix-fork/posix-fork.c index bb809e1..8a44510 100644 --- a/testsuite/smokey/posix-fork/posix-fork.c +++ b/testsuite/smokey/posix-fork/posix-fork.c @@ -47,7 +47,7 @@ static int run_posix_fork(struct smokey_test *t, int argc, char *const argv[]) * Re-exec ourselves without running any test, this is * enough for creating a shadow context. */ - execl(CONFIG_XENO_PREFIX "/bin/smokey", "smokey", NULL); + execl(XENO_TEST_DIR "/smokey", "smokey", NULL); _exit(99); default: req.tv_sec = 0; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git