Skip to content

Commit 80b50a6

Browse files
committed
remove test from non-windows since it depends on wide strings
1 parent 6577046 commit 80b50a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/clang/unittests/HLSL/ValidationTest.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4212,18 +4212,15 @@ TEST_F(ValidationTest, ValidateWithHash) {
42124212
VERIFY_ARE_EQUAL(memcmp(Result, pHeader->Hash.Digest, sizeof(Result)), 0);
42134213
}
42144214

4215-
std::wstring GetEnvVarW(const std::wstring &VarName) {
42164215
#ifdef _WIN32
4216+
std::wstring GetEnvVarW(const std::wstring &VarName) {
42174217
if (const wchar_t *Result = _wgetenv(VarName.c_str()))
42184218
return std::wstring(Result);
4219-
#endif
42204219
return std::wstring();
42214220
}
42224221

42234222
void SetEnvVarW(const std::wstring &VarName, const std::wstring &VarValue) {
4224-
#ifdef _WIN32
42254223
_wputenv_s(VarName.c_str(), VarValue.c_str());
4226-
#endif
42274224
}
42284225

42294226
// For now, 3 things are tested:
@@ -4303,6 +4300,7 @@ TEST_F(ValidationTest, UnitTestExtValidationSupport) {
43034300
// or the empty string if there was no previous value
43044301
SetEnvVarW(L"DXC_DXIL_DLL_PATH", OldEnvVal);
43054302
}
4303+
#endif
43064304

43074305
TEST_F(ValidationTest, ValidatePreviewBypassHash) {
43084306
if (m_ver.SkipDxilVersion(1, ShaderModel::kHighestMinor))

0 commit comments

Comments
 (0)