]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite/libgomp.*/target-present-*.{c,f90}: Improve and fix
authorTobias Burnus <tobias@codesourcery.com>
Wed, 7 Jun 2023 11:22:13 +0000 (13:22 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 7 Jun 2023 11:23:30 +0000 (13:23 +0200)
commitdd958667821e38b7d6b8efe448044901b4762b3a
treeb7f44b6849a725e003d7dc95aa95a601dd90352e
parent5faaabef3819434d13fcbf749bd07bfc98ca7c3c
testsuite/libgomp.*/target-present-*.{c,f90}: Improve and fix

One of the testcases lacked variables in a map clause such that
the fail occurred too early. Additionally, it would have failed
for all those non-host devices where 'present' is always true, i.e.
non-host devices which can access all of the host memory
(shared-memory devices). [There are currently none.]

The commit now runs the code on all devices, which should succeed
for host fallback and for shared-memory devices, finding potenial issues
that way. Additionally, a checkpoint (required stdout output) is used
to ensure that the execution won't fail (with the same error) before
reaching the expected fail location.

2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
    Tobias Burnus  <tobias@codesourcery.com>

libgomp/
* testsuite/libgomp.c-c++-common/target-present-1.c: Run code
also for non-offload_device targets; check that it runs
successfully for those and for all until a checkpoint for all
* testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
* testsuite/libgomp.fortran/target-present-1.f90: Likewise.
* testsuite/libgomp.fortran/target-present-3.f90: Likewise.
* testsuite/libgomp.fortran/target-present-2.f90: Likewise;
add missing vars to map clause.
libgomp/testsuite/libgomp.c-c++-common/target-present-1.c
libgomp/testsuite/libgomp.c-c++-common/target-present-2.c
libgomp/testsuite/libgomp.c-c++-common/target-present-3.c
libgomp/testsuite/libgomp.fortran/target-present-1.f90
libgomp/testsuite/libgomp.fortran/target-present-2.f90
libgomp/testsuite/libgomp.fortran/target-present-3.f90