diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-08-25 19:15:18 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-08-25 19:15:18 -0700 |
| commit | 7c35d9eb71e3383e2b4b95c1d52eca783f8a0a49 (patch) | |
| tree | c2249359466b2be9e30cbadab3c5ed9802c5a7b2 /tools | |
| parent | e62f90597277fba421042c6fd6e7d1be59b7da83 (diff) | |
Try to print failure from AppVeyor tests
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-test/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/slang-test/main.cpp b/tools/slang-test/main.cpp index 6b7da5844..6ee255571 100644 --- a/tools/slang-test/main.cpp +++ b/tools/slang-test/main.cpp @@ -873,6 +873,16 @@ TestResult runHLSLComparisonTest(TestInput& input) { String actualOutputPath = outputStem + ".actual"; Slang::File::WriteAllText(actualOutputPath, actualOutput); + + if (options.outputMode == kOutputMode_AppVeyor) + { + fprintf(stderr, "ERROR:\n" + "EXPECTED{{{\n%s}}}\n" + "ACTUAL{{{\n%s}}}\n", + expectedOutput.Buffer(), + actualOutput.Buffer()); + fflush(stderr); + } } return result; |
