r275256 - in /branches/gcc-8-branch/gcc/testsui...

iains@gcc.gnu.org iains@gcc.gnu.org
Sat Aug 31 20:10:00 GMT 2019


Author: iains
Date: Sat Aug 31 20:10:28 2019
New Revision: 275256

URL: https://gcc.gnu.org/viewcvs?rev=275256&root=gcc&view=rev
Log:
[Darwin, testsuite] Fix isysroot-1.c.

For the test to succeed there needs to be some header that is to be found in
the 'expected' place i.e. <sysroot>/usr/include/. It's important that it is
not the name of a header for which fixincludes have been applied, since such
headers will be found in the gcc include-fixed dir and, in general, reference
additional headers. The dummy sysroot will prevent the additional headers
from being found, resulting in a failed test. The fix is to use a header name
that isn't expected to be present in a real sysroot.

2019-08-31  Iain Sandoe  <iain@sandoe.co.uk>

	Backport from mainline.
	2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc.dg/cpp/isysroot-1.c: Use <example.h> as the test header.
	* gcc.dg/cpp/usr/include/stdio.h: Rename...
	* gcc.dg/cpp/usr/include/example.h: ... to this.


Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/cpp/usr/include/example.h
Removed:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/cpp/usr/include/stdio.h
Modified:
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/cpp/isysroot-1.c



More information about the Gcc-cvs mailing list