- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15.1k
 
[HLSL] Simplify test #165743
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
[HLSL] Simplify test #165743
Conversation
| 
          
 @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Sarah Spall (spall) ChangesSimplify test that fcgl flag is expanded to the right flags. Full diff: https://github.com/llvm/llvm-project/pull/165743.diff 1 Files Affected: 
 diff --git a/clang/test/Driver/dxc_fcgl.hlsl b/clang/test/Driver/dxc_fcgl.hlsl
index fe65124c197bc..d3de2df1882e4 100644
--- a/clang/test/Driver/dxc_fcgl.hlsl
+++ b/clang/test/Driver/dxc_fcgl.hlsl
@@ -1,5 +1,4 @@
-// RUN: not %clang_dxc -fcgl -T lib_6_7 foo.hlsl -### %s 2>&1 | FileCheck %s
-// RUN: %clang_dxc -fcgl -T lib_6_7 %s -Xclang -verify
+// RUN: %clang_dxc -fcgl -T lib_6_7 %s -### %s 2>&1 | FileCheck %s
 
 // Make sure fcgl option flag which translated into "-emit-llvm" "-disable-llvm-passes".
 // CHECK: "-emit-llvm"
 | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable and correct, but the test may also deserve a CHECK-NOT: "-S" to preserve the regression test that #97001 attempted to add here. Admittedly though, that kind of test can be a bit fragile and this particular issue is somewhat unlikely to regress, so I could be convinced we don't really need it.
          
 oh i thought this change did preserve that since this test should fail if such an error is produced? Or that was my thought.  | 
    
          
 IIRC the error was only happening when the clang -cc1 command with both -S and -emit-llvm present was actually run, so the -### command wouldn't produce the error on its own. That said, testing that something doesn't happen for a bug that was fixed long ago is kind of tricky business - this is probably good enough as is.  | 
    
| 
           On further inspection, we do emit -S from  Thanks for digging into this.  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, once the now redundant lines are removed
Simplify test that fcgl flag is expanded to the right flags.
Simplify test that fcgl flag is expanded to the right flags.