diff mbox

libffi testsuite: Don't run testsuite/libffi.call/float2.c on hppa*-*-hpux*

Message ID BLU436-SMTP9546A382BB54D0FD3322C97F70@phx.gbl
State New
Headers show

Commit Message

John David Anglin March 28, 2015, 7:25 p.m. UTC
The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't available on hppa*-*-hpux*.
In order to use the target selector with dg-run, I need to load target-supports-dg.exp in lib/libffi.exp.

Tested on hppa2.0w-hp-hpux11.11.  Okay for trunk?

Dave
--
John David Anglin	dave.anglin@bell.net
2015-03-28  John David Anglin  <danglin@gcc.gnu.org>

	PR libffi/65441
	* testsuite/lib/libffi.exp: Load target-supports-dg.exp.
	* testsuite/libffi.call/float2.c: Don't run on hppa*-*-hpux*.

Comments

Andreas Tobler March 29, 2015, 8:01 p.m. UTC | #1
On 28.03.15 20:25, John David Anglin wrote:
> The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't available on hppa*-*-hpux*.
> In order to use the target selector with dg-run, I need to load target-supports-dg.exp in lib/libffi.exp.
>
> Tested on hppa2.0w-hp-hpux11.11.  Okay for trunk?

 From the testsuite pov. ok, but I do not have a picture of the trunk 
check in restrictions regarding the next release.

Thanks,
Andreas
Andreas Tobler Oct. 26, 2015, 9:48 p.m. UTC | #2
Hi John,

On 29.03.15 22:01, Andreas Tobler wrote:
> On 28.03.15 20:25, John David Anglin wrote:
>> The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't available on hppa*-*-hpux*.
>> In order to use the target selector with dg-run, I need to load target-supports-dg.exp in lib/libffi.exp.
>>
>> Tested on hppa2.0w-hp-hpux11.11.  Okay for trunk?
>
>   From the testsuite pov. ok, but I do not have a picture of the trunk
> check in restrictions regarding the next release.

How about to commit now?

Andreas
diff mbox

Patch

Index: testsuite/lib/libffi.exp
===================================================================
--- testsuite/lib/libffi.exp	(revision 221726)
+++ testsuite/lib/libffi.exp	(working copy)
@@ -24,6 +24,7 @@ 
 load_lib dg.exp
 load_lib libgloss.exp
 load_gcc_lib target-supports.exp
+load_gcc_lib target-supports-dg.exp
 load_gcc_lib target-libpath.exp
 load_gcc_lib wrapper.exp
 
Index: testsuite/libffi.call/float2.c
===================================================================
--- testsuite/libffi.call/float2.c	(revision 221726)
+++ testsuite/libffi.call/float2.c	(working copy)
@@ -3,7 +3,7 @@ 
    Limitations:	none.
    PR:		none.
    Originator:	From the original ffitest.c  */
-/* { dg-do run } */
+/* { dg-do run { target { ! hppa*-*-hpux* } } } */
 
 #include "ffitest.h"
 #include "float.h"