]> git.ipfire.org Git - thirdparty/gcc.git/commit
When running the testsuite on boards that can't report an error status
authormatmal01 <matmal01@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2018 16:26:44 +0000 (16:26 +0000)
committermatmal01 <matmal01@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2018 16:26:44 +0000 (16:26 +0000)
commit3b06a8b36d9b923e0fa0beb17bd88e545233f431
tree55a5f426a4979eab9bfc7e00f4eb4c934eb6e5e9
parent7ec2d0f7415cdd5f55049650acb548190efedc57
When running the testsuite on boards that can't report an error status
DejaGNU uses a special wrapper to print the exit code on stdout and
parses stdout to find whether an execution failed or passed.

In testcases that use "freopen (..., ..., stdout)" this special line is
printed to the alternate location described in the freopen call and
DejaGNU can't find the error code.

This results in DejaGNU using a default return status of 2 and the test
failing.

This patch skips the two testcases that use freopen on stdout when
testing a board that requires this wrapper.

Testing done by running these two tests on arm-none-eabi cross build and
observing that they are unsupported.

gcc/testsuite/ChangeLog:

2018-11-16  Matthew Malcomson  <matthew.malcomson@arm.com>

* gcc.c-torture/execute/printf-2.c: Skip on wrapped boards.
* gcc.c-torture/execute/user-printf.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266214 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/printf-2.c
gcc/testsuite/gcc.c-torture/execute/user-printf.c