Subject: Re: Smokey GDB test References: From: Jan Kiszka Message-ID: Date: Wed, 24 Jul 2019 08:46:07 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: hauptmech , Xenomai On 24.07.19 08:33, hauptmech via Xenomai wrote: > The smokey GDB test was failing for me. > > Xenomai was built with ./configure --enable-smp --enable-pshared on a x86_64 > system with cobalt > > GCC version (Ubuntu 7.4.0-lubuntu1~18.04.1) 7.4.0 > > GDB version (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git > > Running the test by hand I found gdb complaining that it did not know the type > of the expressions. > > Casting the type in the expressions as below fixed things for me: > > diff --git a/testsuite/smokey/gdb/gdb.c b/testsuite/smokey/gdb/gdb.c > index 2fad3da19..538346a04 100644 > --- a/testsuite/smokey/gdb/gdb.c > +++ b/testsuite/smokey/gdb/gdb.c > @@ -285,15 +285,15 @@ static int run_gdb(struct smokey_test *t, int argc, char > *const argv[]) > >              smokey_trace("resume in primary"); >              send_command("c\n", 1); > -            eval_expression("primary_mode", "1"); > +            eval_expression("(int)primary_mode", "1"); >              send_command("c\n", 1); > >              smokey_trace("synchronous stop"); > -            eval_expression("thread_loops==expected_loops", "1"); > +            eval_expression("(unsigned long long)thread_loops==(unsigned long > long)expected_loops", "1"); >              send_command("c\n", 1); > >              smokey_trace("synchronous continue"); > -            eval_expression("thread_loops==expected_loops", "1"); > +            eval_expression("(unsigned long long)thread_loops==(unsigned long > long)expected_loops", "1"); > >              send_command("q\n", 0); >              pause(); > > Was this with https://gitlab.denx.de/Xenomai/xenomai/commit/d48071ae92754119e504202d486cd87762c46cbb applied? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux