diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-08-12 21:46:41 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-08-12 21:46:41 -0400 |
commit | f622df9af2e7c1da35cf0c9b895dacc1fa75107a (patch) | |
tree | f59d3e420b5ddb422e5660a67f04b5159d4908f0 | |
parent | d6d1fa0039e68e52c3d787d90b545842cbb24d32 (diff) | |
download | gcc-f622df9af2e7c1da35cf0c9b895dacc1fa75107a.zip gcc-f622df9af2e7c1da35cf0c9b895dacc1fa75107a.tar.gz gcc-f622df9af2e7c1da35cf0c9b895dacc1fa75107a.tar.bz2 |
testsuite: fix jit.dg/test-error-impossible-must-tail-call.c [PR119783]
I added this test back in r7-934-g15c671a79ca66d, but it looks like
r15-2125-g81824596361cf4 changed the error message.
gcc/testsuite/ChangeLog:
PR testsuite/119783
jit.dg/test-error-impossible-must-tail-call.c
* jit.dg/test-error-impossible-must-tail-call.c (verify_code):
Check that we get a suitable-looking error message, but don't
try to specify exactly what the message is.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
-rw-r--r-- | gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c b/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c index 8848d30..a50dcb2 100644 --- a/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c +++ b/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c @@ -88,6 +88,8 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) { CHECK_VALUE (result, NULL); - CHECK_STRING_VALUE (gcc_jit_context_get_first_error (ctxt), - "cannot tail-call: callee returns a structure"); + /* Check that we get an error message with a reason; we + don't want to overspecify the test with a precise reason, though. */ + CHECK_STRING_STARTS_WITH (gcc_jit_context_get_first_error (ctxt), + "cannot tail-call: "); } |