[Openmp-commits] [openmp] 8ca07e5 - [Flang][OpenMP][Offloading][Test] Adjust slightly incorrect tests now cmake configuration works

Andrew Gozillon via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 10 14:21:22 PST 2024


Author: Andrew Gozillon
Date: 2024-01-10T16:20:33-06:00
New Revision: 8ca07e57c3be0dc41dbb95f6b21e541fecd74e8a

URL: https://github.com/llvm/llvm-project/commit/8ca07e57c3be0dc41dbb95f6b21e541fecd74e8a
DIFF: https://github.com/llvm/llvm-project/commit/8ca07e57c3be0dc41dbb95f6b21e541fecd74e8a.diff

LOG: [Flang][OpenMP][Offloading][Test] Adjust slightly incorrect tests now cmake configuration works

These tests were slightly broken, in one case a failing test that now works. In the other case
some accidentally left over code during a name change that broke compilation due to missing
symbols.

Added: 
    openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90

Modified: 
    openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90

Removed: 
    openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block1.f90


################################################################################
diff  --git a/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90 b/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90
index f20423edb95765..402de2782b2536 100644
--- a/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90
+++ b/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90
@@ -15,8 +15,7 @@ program main
   call commonblock_simple_with_implicit_type_var
   call commonblock_simple_with_integer
   call commonblock_simple_with_real
-  call commonblock_simple_to
-  call commonblock_simple_from
+  call commonblock_simple_to_from
   call set_commonblock_named
   call use_commonblock_named
 end program main

diff  --git a/openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block1.f90 b/openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90
similarity index 98%
rename from openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block1.f90
rename to openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90
index 235da47a9103a8..35bbe511d9314d 100644
--- a/openmp/libomptarget/test/offloading/fortran/failing/target_map_common_block1.f90
+++ b/openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90
@@ -7,7 +7,6 @@
 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
 
 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
-! XFAIL: *
 
 program main
   use omp_lib


        


More information about the Openmp-commits mailing list