From 806c3afaf6d42fedd290ca16a689476793652186 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sun, 29 May 2011 21:41:11 +0000 Subject: [PATCH] Fix test app build and adjust the app path to the jam output directory. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41817 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/app/common/AppRunner.cpp | 2 +- src/tests/kits/app/common/CommonTestApp.cpp | 1 + src/tests/kits/app/common/PipedAppRunner.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/kits/app/common/AppRunner.cpp b/src/tests/kits/app/common/AppRunner.cpp index 0d5df5053b..f3681d45bb 100644 --- a/src/tests/kits/app/common/AppRunner.cpp +++ b/src/tests/kits/app/common/AppRunner.cpp @@ -288,7 +288,7 @@ find_test_app(const char *testApp, BString *path) if (error == B_OK) { *path = BTestShell::GlobalTestDir(); path->CharacterEscape(" \t\n!\"'`$&()?*+{}[]<>|", '\\'); - *path += "/../kits/app/"; + *path += "/"; *path += testApp; #ifdef TEST_R5 *path += "_r5"; diff --git a/src/tests/kits/app/common/CommonTestApp.cpp b/src/tests/kits/app/common/CommonTestApp.cpp index c881a09b84..7a7794a1bf 100644 --- a/src/tests/kits/app/common/CommonTestApp.cpp +++ b/src/tests/kits/app/common/CommonTestApp.cpp @@ -1,6 +1,7 @@ // CommonTestApp.cpp #include +#include #include diff --git a/src/tests/kits/app/common/PipedAppRunner.cpp b/src/tests/kits/app/common/PipedAppRunner.cpp index 2d8d30572f..8d127c0670 100644 --- a/src/tests/kits/app/common/PipedAppRunner.cpp +++ b/src/tests/kits/app/common/PipedAppRunner.cpp @@ -41,7 +41,7 @@ PipedAppRunner::Run(const char *command, const char *args, bool findCommand) if (findCommand) { appPath = BTestShell::GlobalTestDir(); appPath.CharacterEscape(" \t\n!\"'`$&()?*+{}[]<>|", '\\'); - appPath += "/../kits/app/"; + appPath += "/"; appPath += command; #ifdef TEST_R5 appPath += "_r5";