[flang-commits] [flang] [Flang][Driver][OpenMP][Test] Modify one omp-driver-offload.f90 command to not incorrectly expect a single output (PR #67335)

via flang-commits flang-commits at lists.llvm.org
Mon Sep 25 07:42:43 PDT 2023


https://github.com/agozillon created https://github.com/llvm/llvm-project/pull/67335

The test command which tests offloading to multiple device architectures expects multiple outputs, however, the test as written with the -o expects a single output result. This change modifies it to not expect a single output, which allows the command to succeed and allow the removal of the not prefix.

>From 887e484a99f7b6bead060930f830622a7998bf70 Mon Sep 17 00:00:00 2001
From: Andrew Gozillon <Andrew.Gozillon at amd.com>
Date: Mon, 25 Sep 2023 09:36:17 -0500
Subject: [PATCH] [Flang][Driver][OpenMP][Test] Modify one
 omp-driver-offload.f90 test to not incorrectly expect a single output

The test command which tests offloading to multiple device architectures
expects multiple outputs, however, the test as written with the -o
expects a single output result. This change modifies it to not expect a
single output, which allows the command to succeed and allow the removal
of the not prefix.
---
 flang/test/Driver/omp-driver-offload.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Driver/omp-driver-offload.f90 b/flang/test/Driver/omp-driver-offload.f90
index 74ed0f9006e81c3..ba68f76e7a458aa 100644
--- a/flang/test/Driver/omp-driver-offload.f90
+++ b/flang/test/Driver/omp-driver-offload.f90
@@ -33,7 +33,7 @@
 ! OFFLOAD-HOST-NOT: "-triple" "nvptx64-nvidia-cuda"
 ! OFFLOAD-HOST-NOT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
 
-! RUN: not %flang -S -### %s -o %t 2>&1 \
+! RUN: %flang -S -### %s 2>&1 \
 ! RUN: -fopenmp --offload-arch=gfx90a --offload-arch=sm_70 --offload-device-only \
 ! RUN: --target=aarch64-unknown-linux-gnu \
 ! RUN:   | FileCheck %s --check-prefix=OFFLOAD-DEVICE



More information about the flang-commits mailing list