Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

agozillon
Copy link
Contributor

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.

…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.
@llvmbot
Copy link
Member

llvmbot commented Sep 25, 2023

@llvm/pr-subscribers-flang-openmp

@llvm/pr-subscribers-flang-driver

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/67335.diff

1 Files Affected:

  • (modified) flang/test/Driver/omp-driver-offload.f90 (+1-1)
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

@agozillon
Copy link
Contributor Author

windows failure is unrelated to this test change, seems to be a sporadic break of the windows test script

Copy link
Contributor

@banach-space banach-space left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@agozillon agozillon merged commit 18111ca into llvm:main Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:driver flang:openmp flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants