Skip to content

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Jun 20, 2024

Add support for 'xfailcat' in RUN: commands.
It requires the prior command to fail, and also propagates
stdout and stderr.

This is useful for cases for parsing error messages, example

   // RUN: %dxc -T cs_6_0 will_fail.hlsl %s | xfailcat | FileCheck %s
   // CHECK: error: something blah blah

This is an alternative to supporting 'not'.

Builds on #6710.
Also, modify the test from #6710 to check the error message

dneto0 added 2 commits June 20, 2024 12:19
If an exception is thrown, don't block it in the TempOverloadPool
destructor. Allow it to propagate out as a user-visible error.

Explicitly clear the TempOverloadPool before returning from the
HLMatrixLowerPass::runOnModule. In the normal case, when
no exception is thrown, that will still verify that all the
overloads actually have been lowered, and will assert out
if they aren't.
…tdout

Add support for 'xfailcat' in RUN: commands.
It requires the prior command to fail, and also propagates
stdout and stderr.

This is useful for cases for parsing error messages, example

   // RUN: %dxc -T cs_6_0 will_fail.hlsl %s | xfailcat | FileCheck %s
   // CHECK: error: something blah blah

This is an alternativ to supporting 'not'.

Also, modify the test from microsoft#6710 to check the error message
@llvm-beanz
Copy link
Collaborator

But we do support not in the LIT-test flow, and we're trying to kill off the legacy test runners, so this seems like a step in the wrong direction.

@dneto0 dneto0 closed this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants