diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-14 10:06:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 10:06:16 -0700 |
| commit | 2e08f33386b65502e16eea33613bddf98ab8b440 (patch) | |
| tree | fc2b0f8808b5c8bb8659d054387e77c617220f16 /tools/slang-test | |
| parent | e57736bdec06246e32f9deea0ad3cc05a433acb1 (diff) | |
Fix assert when compiling an entrypoint that calls another entrypoint. (#5268)
* Fix assert when compiling an entrypoint that calls another entrypoint.
* Fix test.
Diffstat (limited to 'tools/slang-test')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index b493b40b0..150e21d5d 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -4644,7 +4644,8 @@ SlangResult innerMain(int argc, char** argv) static constexpr int kFailedTestLimitForRetry = 16; if (context.failedFileTests.getCount() <= kFailedTestLimitForRetry) { - printf("Retrying %d failed tests...\n", (int)context.failedFileTests.getCount()); + if (context.failedFileTests.getCount() > 0) + printf("Retrying %d failed tests...\n", (int)context.failedFileTests.getCount()); for (auto& test : context.failedFileTests) { FileTestInfoImpl* fileTestInfo = static_cast<FileTestInfoImpl*>(test.Ptr()); |
