Skip to content

Long Vectors tests: add better logging around FailIfRequirementsNotMet #7949

@damyanp

Description

@damyanp

It took a long to figure out that when running in environments where _HLK_CONF is defined the LongVectors tests will, by default, fail if the device doesn't support SM 6.9.

The log output does not make this clear. For example:

The selected device does not support shader model 6.9
Error: Verify: IsTrue(createDevice(&D3DDevice, D3D_SHADER_MODEL_6_9, false)) [File: D:\a\_work\1\s\packages\OSS\dxil\test\hlk\LongVectors.cpp, Function: DxilConf_SM69_Vectorized::methodSetup, Line: 1791]
Error: TAEF: Setup fixture 'DxilConf_SM69_Vectorized::methodSetup' for the scope 'DxilConf_SM69_Vectorized::Abs_HLSLHalf_t' failed.

StartGroup: DxilConf_SM69_Vectorized::Abs_HLSLHalf_t
EndGroup: DxilConf_SM69_Vectorized::Abs_HLSLHalf_t [Failed]

It would be really good if this made it clear why the default behavior is different.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions