On 28.06.19 15:48, Henning Schild wrote:
> Am Fri, 28 Jun 2019 15:06:39 +0200
> schrieb Jan Kiszka <jan.kis...@siemens.com>:
> 
>> On 28.06.19 14:48, Henning Schild wrote:
>>>> BTW, regarding the failing smokey gdb test: Check if gdb is
>>>> available on the target. That is now a precondition.
>>>
>>> Yes it is. The $ N does not make any sense. It came from running a
>>> local copy without "make install". That is currently not supported
>>> by the gdb test, which should be fixed. People might want to test
>>> before installing, if just working on one machine.
>>
>> This works fine here:
>>
>> $ xenomai/build/testsuite/smokey/smokey --run=gdb
>> gdb OK
> 
> Running local, in a rootfs not containing an old version? The problem
> is launching smokey again from gdb. In my case the old smokey did not
> even know about "gdb".
> 

OK, I think I got it now. This should fix both issues:

diff --git a/testsuite/smokey/gdb/gdb.c b/testsuite/smokey/gdb/gdb.c
index 2fad3da19a..a6909d595b 100644
--- a/testsuite/smokey/gdb/gdb.c
+++ b/testsuite/smokey/gdb/gdb.c
@@ -274,8 +274,7 @@ static int run_gdb(struct smokey_test *t, int argc, char 
*const argv[])
                        snprintf(run_param, sizeof(run_param), "--run=%d",
                                 t->__reserved.id);
                        execl("/usr/bin/gdb", "gdb", "--args",
-                             CONFIG_XENO_PREFIX "/bin/smokey", run_param,
-                             "run_target", NULL);
+                             argv[0], run_param, "run_target", NULL);
                        _exit(ESRCH);
 
                default:

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to