From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 470813858C50; Mon, 17 Oct 2022 21:35:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 470813858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666042547; bh=JjrGp7XliDe0BBWLIOZ9/5TrdnXCPIm08GpcsMJl/+E=; h=From:To:Subject:Date:From; b=qXbWRLbWmPA+7zHuEdX4j6QTp1iVw3gmpmBzUHVetDWnUlEgZlHN1bxF9hGf0Ny+J zIFIq7TsgIGQnNfv6AqywnbQnDx1jcsamrwNYplZx4+JYloBiKZulL4+ZccfXTHhUM NVAXQaq4FxZFC0RlenKqkoIjba/aM+RtjsuhcCIc= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29697] New: [gdb/testsuite, local-remote-host] FAIL: gdb.base/callfuncs.exp: noproto: p ((int (*) ()) t_float_values2)(3.14159,float_val2) Date: Mon, 17 Oct 2022 21:35:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29697 Bug ID: 29697 Summary: [gdb/testsuite, local-remote-host] FAIL: gdb.base/callfuncs.exp: noproto: p ((int (*) ()) t_float_values2)(3.14159,float_val2) Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: testsuite Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- With host board local-remote-host.exp and test-case gdb.base/callfuncs.exp,= I run into: ... (gdb) PASS: gdb.base/callfuncs.exp: noproto: p t_float_values2(3.14159,float_val2) p ((int (*) ()) t_float_values2)(3.14159,float_val2)^M $30 =3D 0^M (gdb) FAIL: gdb.base/callfuncs.exp: noproto: p ((int (*) ()) t_float_values2)(3.14159,float_val2) ... It took me a while to realize that the problem is that there are two prepare_for_testing calls, writing to the same exec, and somehow the second= has no effect. In other words, we're seeing the effect of having additional_flags=3D-DPROT= OTYPES in both cases. This can easily be solved with something like: ... diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 44289eebc8b..403f127bfe8 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -540,11 +540,11 @@ proc perform_all_tests {prototypes} { # Perform all tests with and without function prototypes. -if { ![prepare_for_testing "failed to prepare" $testfile $srcfile "$compile_flags additio nal_flags=3D-DPROTOTYPES"] } { +if { ![prepare_for_testing "failed to prepare" $testfile-proto $srcfile "$compile_f lags additional_flags=3D-DPROTOTYPES"] } { perform_all_tests 1 } -if { ![prepare_for_testing "failed to prepare" $testfile $srcfile "$compile_flags additio nal_flags=3D-DNO_PROTOTYPES"] } { +if { ![prepare_for_testing "failed to prepare" $testfile-noproto $srcfile "$compile _flags additional_flags=3D-DNO_PROTOTYPES"] } { with_test_prefix "noproto" { perform_all_tests 0 } ... It's a good idea to commit the patch, for reasons of having less confusion,= as other recent patches have done. But the FAIL points to a problem with the file upload/download mechanism for the host board. I managed to make things work by removing ${board}_download from the host b= oard file, but that fills my home dir with temp files... I tried other ways, but am possibly running into dejagnu bugs (using a.out = as hardcoded intermediate file for objects does not look sane to me), so this looks like non-trivial to fix. --=20 You are receiving this mail because: You are on the CC list for the bug.=