aboutsummaryrefslogtreecommitdiff
path: root/gtests/BuiltInResource.FromFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gtests/BuiltInResource.FromFile.cpp')
-rw-r--r--gtests/BuiltInResource.FromFile.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/gtests/BuiltInResource.FromFile.cpp b/gtests/BuiltInResource.FromFile.cpp
index eeea5118..da81fe98 100644
--- a/gtests/BuiltInResource.FromFile.cpp
+++ b/gtests/BuiltInResource.FromFile.cpp
@@ -36,7 +36,7 @@
#include <gtest/gtest.h>
-#include "glslang/Public/ResourceLimits.h"
+#include "StandAlone/ResourceLimits.h"
#include "TestFixture.h"
namespace glslangtest {
@@ -49,19 +49,9 @@ TEST_F(DefaultResourceTest, FromFile)
const std::string path = GlobalTestSettings.testRoot + "/baseResults/test.conf";
std::string expectedConfig;
tryLoadFile(path, "expected resource limit", &expectedConfig);
- const std::string realConfig = GetDefaultTBuiltInResourceString();
+ const std::string realConfig = glslang::GetDefaultTBuiltInResourceString();
ASSERT_EQ(expectedConfig, realConfig);
}
-TEST_F(DefaultResourceTest, UnrecognizedLimit)
-{
- const std::string defaultConfig = GetDefaultTBuiltInResourceString();
- testing::internal::CaptureStdout();
- TBuiltInResource resources;
- DecodeResourceLimits(&resources, const_cast<char*>(defaultConfig.c_str()));
- std::string output = testing::internal::GetCapturedStdout();
- ASSERT_EQ(output.find("unrecognized limit"), std::string::npos);
-}
-
} // anonymous namespace
} // namespace glslangtest