From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7873) id 6F35D3858406; Tue, 18 Jan 2022 07:20:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F35D3858406 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tiezhu Yang To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: testsuite: print explicit test result for gdb.base/dfp-test.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tiezhu Yang X-Git-Refname: refs/heads/master X-Git-Oldrev: 0c80c644641f67b18661a63b19c47074b308bc18 X-Git-Newrev: 709a3d07f330cc75031529f8952ceb19d7095df3 Message-Id: <20220118072005.6F35D3858406@sourceware.org> Date: Tue, 18 Jan 2022 07:20:05 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 07:20:05 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D709a3d07f330= cc75031529f8952ceb19d7095df3 commit 709a3d07f330cc75031529f8952ceb19d7095df3 Author: Tiezhu Yang Date: Tue Jan 18 15:17:57 2022 +0800 gdb: testsuite: print explicit test result for gdb.base/dfp-test.exp =20 In the current code, if decimal floating point is not supported for this target, there is no binary file dfp-test, and also there is no test result after execute the following commands: =20 $ make check-gdb TESTS=3D"gdb.base/dfp-test.exp" $ grep error gdb/testsuite/gdb.log /home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.c:39:1: error:= decimal floating point not supported for this target [...] $ cat gdb/testsuite/gdb.sum [...] Running target unix Running /home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.exp ... =20 =3D=3D=3D gdb Summary =3D=3D=3D [...] =20 With this patch: =20 $ make check-gdb TESTS=3D"gdb.base/dfp-test.exp" $ cat gdb/testsuite/gdb.sum [...] Running target unix Running /home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.exp ... UNSUPPORTED: gdb.base/dfp-test.exp: decimal floating point not suppor= ted for this target. =20 =3D=3D=3D gdb Summary =3D=3D=3D =20 # of unsupported tests 1 [...] =20 Signed-off-by: Tiezhu Yang Diff: --- gdb/testsuite/gdb.base/dfp-test.exp | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/testsuite/gdb.base/dfp-test.exp b/gdb/testsuite/gdb.base/d= fp-test.exp index 4866d0ae094..6c3de2863ea 100644 --- a/gdb/testsuite/gdb.base/dfp-test.exp +++ b/gdb/testsuite/gdb.base/dfp-test.exp @@ -23,6 +23,7 @@ standard_testfile .c # Try to compile the test case. If we can't, assume the # toolchain does not yet provide DFP support and bail out. if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable= {quiet debug}] !=3D "" } { + unsupported "decimal floating point not supported for this target." verbose "Skipping DFP tests." return -1 }