From dcfd4f324e2f8972db6ee3cdc7dfd1831c96049a Mon Sep 17 00:00:00 2001 From: Kyle Ambroff-Kao Date: Sat, 11 Jan 2020 02:38:06 -0800 Subject: [PATCH] GetRecentTester: Fix path to test apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_test_app_ref() computes a path relative to BTestShell::GlobalTestDir() that is supposed to contain test apps that will be launched with launch_test_app(). The path is incorrect so several tests fail. The test apps are actually just in BTestShell::GlobalTestDir(). Fixing this resolves 6 of the 12 failing tests in the BRoster tests. Change-Id: I4b287c19fd83d3afe40dca137fea2bd61a0f9359 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2114 Reviewed-by: Adrien Destugues Reviewed-by: Axel Dörfler --- src/tests/kits/app/broster/GetRecentTester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/kits/app/broster/GetRecentTester.cpp b/src/tests/kits/app/broster/GetRecentTester.cpp index 2cf4c37706..819f762300 100644 --- a/src/tests/kits/app/broster/GetRecentTester.cpp +++ b/src/tests/kits/app/broster/GetRecentTester.cpp @@ -275,7 +275,7 @@ get_test_app_ref(RecentAppsTestAppId id, entry_ref *ref) err = testDir ? B_OK : B_NAME_NOT_FOUND; if (!err) { char path[B_PATH_NAME_LENGTH]; - sprintf(path, "%s/../kits/app/%s%s", testDir, kRecentAppsTestAppFilenames[id], + sprintf(path, "%s/%s%s", testDir, kRecentAppsTestAppFilenames[id], #if TEST_R5 "_r5" #else