From f23f61c8e344a63977775553ac38676622fbb0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 2 Nov 2005 14:25:58 +0000 Subject: [PATCH] Fixed the "run_haiku_registrar" tool to be used with the new build system. It doesn't build though, as SimpleTest doesn't seem to work anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14644 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/registrar/run_haiku_registrar.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/servers/registrar/run_haiku_registrar.cpp b/src/tests/servers/registrar/run_haiku_registrar.cpp index f8a3961440..153f59c72d 100644 --- a/src/tests/servers/registrar/run_haiku_registrar.cpp +++ b/src/tests/servers/registrar/run_haiku_registrar.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -67,11 +68,11 @@ main() continue; const char* registrarPath = path.Path(); - const char* distro = strstr(registrarPath, "distro"); - if (distro == NULL) + const char* generatedPath = strstr(registrarPath, "generated"); + if (generatedPath == NULL) continue; - if (!strncmp(currentPath.Path(), registrarPath, distro - registrarPath)) { + if (!strncmp(currentPath.Path(), registrarPath, generatedPath - registrarPath)) { // gotcha! const char* args[] = { registrarPath, NULL }; thread_id thread = load_image(1, args, (const char**)environ);