[testsuite] Skip gcc.dg/ucnid-5-utf8.c unless ucn is supported

Message ID ydd4l13mi3d.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series
  • [testsuite] Skip gcc.dg/ucnid-5-utf8.c unless ucn is supported
Related show

Commit Message

Rainer Orth Sept. 23, 2019, 10:18 a.m.
The new gcc.dg/ucnid-5-utf8.c test FAILs on Solaris with the native
assembler:

+FAIL: gcc.dg/ucnid-5-utf8.c (test for excess errors)
+UNRESOLVED: gcc.dg/ucnid-5-utf8.c compilation failed to produce executable

Excess errors:
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 22: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 22: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 22: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 23: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 23: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 23: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 25: error: unknown opcode "a$b"
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 25: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 25: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 25: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 25: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 60: error: invalid character (0x9f)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 60: error: invalid character (0x98)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 60: error: invalid character (0x80)
/usr/ccs/bin/as: "/var/tmp//cc8LEnCb.s", line 37: warning: size of "a$b" redefined

The test uses a UCN identifier (as can only be seen with cat -v), but
fails to declare that requirement.  Fixed as follows as has been done in
the other affected ucnid-*.c tests.  Now the test is UNSUPPORTED on
i386-pc-solaris2.11 with as and PASSes with gas.

Installed on mainline.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2019-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/ucnid-5-utf8.c: Skip unless ucn is supported.

Patch

# HG changeset patch
# Parent  071c1aca10b4c058ee33055f2346209812c9aa52
Skip gcc.dg/ucnid-5-utf8.c unless ucn is supported

diff --git a/gcc/testsuite/gcc.dg/ucnid-5-utf8.c b/gcc/testsuite/gcc.dg/ucnid-5-utf8.c
--- a/gcc/testsuite/gcc.dg/ucnid-5-utf8.c
+++ b/gcc/testsuite/gcc.dg/ucnid-5-utf8.c
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-skip-if "No dollar in identfiers" { avr-*-* powerpc-ibm-aix* } } */
+/* { dg-skip-if "" { ! ucn } } */
 /* { dg-options "-std=c99 -fdollars-in-identifiers -g" } */
 void abort (void);