Skip to content

Conversation

@sarnex
Copy link
Member

@sarnex sarnex commented Jan 5, 2026

not behavior change in #174298 requires --crash passed now.

Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
@sarnex sarnex marked this pull request as ready for review January 5, 2026 22:46
@sarnex sarnex requested a review from boomanaiden154 January 5, 2026 22:47
@llvmbot llvmbot added the offload label Jan 5, 2026
@llvmbot
Copy link
Member

llvmbot commented Jan 5, 2026

@llvm/pr-subscribers-offload

Author: Nick Sarnie (sarnex)

Changes

not behavior change in #174298 requires --crash passed now.


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

1 Files Affected:

  • (modified) offload/test/offloading/requires.c (+1-1)
diff --git a/offload/test/offloading/requires.c b/offload/test/offloading/requires.c
index 249c478215d42..2afbbcbde6155 100644
--- a/offload/test/offloading/requires.c
+++ b/offload/test/offloading/requires.c
@@ -1,6 +1,6 @@
 // clang-format off
 // RUN: %libomptarget-compile-generic -DREQ=1 && %libomptarget-run-generic 2>&1 | %fcheck-generic -check-prefix=GOOD
-// RUN: %libomptarget-compile-generic -DREQ=2 && not %libomptarget-run-generic 2>&1 | %fcheck-generic -check-prefix=BAD
+// RUN: %libomptarget-compile-generic -DREQ=2 && not --crash %libomptarget-run-generic 2>&1 | %fcheck-generic -check-prefix=BAD
 // clang-format on
 
 /*

@sarnex sarnex requested a review from jhuber6 January 5, 2026 22:47
Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

Does this not crash without assertions?

@sarnex
Copy link
Member Author

sarnex commented Jan 5, 2026

Really good question, one sec

@sarnex
Copy link
Member Author

sarnex commented Jan 5, 2026

The behavior is the same with and without assertions, the test throws SIGABRT and returns signal 134. The test passes with --crash in both cases and fails without it (after the not change)

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

Thanks for the confirmation.

@sarnex
Copy link
Member Author

sarnex commented Jan 5, 2026

Thanks for the feedback!

@sarnex sarnex merged commit 13e3527 into llvm:main Jan 5, 2026
13 checks passed
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jan 6, 2026
`not` behavior change in
llvm#174298 requires `--crash`
passed now.

Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants