diff options
author | Matthew Malcomson <matthew.malcomson@arm.com> | 2018-11-16 16:26:44 +0000 |
---|---|---|
committer | Matthew Malcomson <matmal01@gcc.gnu.org> | 2018-11-16 16:26:44 +0000 |
commit | fe5d12969fba426ff15afad597a3668bb18804ea (patch) | |
tree | 55a5f426a4979eab9bfc7e00f4eb4c934eb6e5e9 /gcc | |
parent | 4359b6318f9cb0861b25cd174e8a1a07f1740c27 (diff) | |
download | gcc-fe5d12969fba426ff15afad597a3668bb18804ea.zip gcc-fe5d12969fba426ff15afad597a3668bb18804ea.tar.gz gcc-fe5d12969fba426ff15afad597a3668bb18804ea.tar.bz2 |
When running the testsuite on boards that can't report an error status DejaGNU...
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.
From-SVN: r266214
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/printf-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/user-printf.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b1b6ae4..a00506d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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. + 2018-11-16 Nathan Sidwell <nathan@acm.org> PR c++/87269 diff --git a/gcc/testsuite/gcc.c-torture/execute/printf-2.c b/gcc/testsuite/gcc.c-torture/execute/printf-2.c index 5074110..2e9f2a2 100644 --- a/gcc/testsuite/gcc.c-torture/execute/printf-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/printf-2.c @@ -1,6 +1,7 @@ /* Verify that calls to printf don't get eliminated even if their result on success can be computed at compile time (they can fail). The calls can still be transformed into those of other functions. + { dg-require-effective-target unwrapped } { dg-skip-if "requires io" { freestanding } } */ #include <stdio.h> diff --git a/gcc/testsuite/gcc.c-torture/execute/user-printf.c b/gcc/testsuite/gcc.c-torture/execute/user-printf.c index e5784ed..11c61fa 100644 --- a/gcc/testsuite/gcc.c-torture/execute/user-printf.c +++ b/gcc/testsuite/gcc.c-torture/execute/user-printf.c @@ -1,6 +1,7 @@ /* Verify that calls to a function declared wiith attribute format (printf) don't get eliminated even if their result on success can be computed at compile time (they can fail). + { dg-require-effective-target unwrapped } { dg-skip-if "requires io" { freestanding } } */ #include <stdarg.h> |