diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-11-13 13:35:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-13 13:35:56 -0500 |
| commit | 9604118401f185c0e1a213b8e99dad060c6263bc (patch) | |
| tree | b2a651f72f8f6f10afad74ba7cdc91376aa0f2d5 /tools/slang-test | |
| parent | 166a7387cb3a83b24dd4b9279877338c758eb8b6 (diff) | |
* Added getCStr(Name*) (#1121)
* Added the name to the EntryPointLayout so is always available
* Made spReflectionEntryPoint_getName use name
* Improved checking for entry point name in render-test
* Improved COMPILE test type to allow failure and output of failure.
Diffstat (limited to 'tools/slang-test')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 2000bf617..e0474ebe6 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -1106,6 +1106,18 @@ TestResult runCompile(TestContext* context, TestInput& input) return TestResult::Pass; } + if (exeRes.resultCode != 0) + { + auto reporter = context->reporter; + if (reporter) + { + auto output = getOutput(exeRes); + reporter->message(TestMessageType::TestFailure, output); + } + + return TestResult::Fail; + } + return TestResult::Pass; } |
