GetRecentTester: Fix path to test apps

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 <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Kyle Ambroff-Kao
2020-01-16 10:31:15 +00:00
committed by Axel Dörfler
parent d17c92f779
commit dcfd4f324e
@@ -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