diff options
Diffstat (limited to 'tools/slang-test')
| -rw-r--r-- | tools/slang-test/slangc-tool.cpp | 10 | ||||
| -rw-r--r-- | tools/slang-test/test-context.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/slang-test/slangc-tool.cpp b/tools/slang-test/slangc-tool.cpp index 159e6faf2..ff44c0db6 100644 --- a/tools/slang-test/slangc-tool.cpp +++ b/tools/slang-test/slangc-tool.cpp @@ -14,12 +14,12 @@ SlangResult SlangCTool::innerMain(StdWriters* stdWriters, slang::IGlobalSession* // Assume we will used the shared session ComPtr<slang::IGlobalSession> session(sharedSession); - // The sharedSession always has a pre-loaded stdlib. - // This differed test checks if the command line has an option to setup the stdlib. - // If so we *don't* use the sharedSession, and create a new stdlib-less session just for this compilation. - if (TestToolUtil::hasDeferredStdLib(Index(argc - 1), argv + 1)) + // The sharedSession always has a pre-loaded core module. + // This differed test checks if the command line has an option to setup the core module. + // If so we *don't* use the sharedSession, and create a new session without the core module just for this compilation. + if (TestToolUtil::hasDeferredCoreModule(Index(argc - 1), argv + 1)) { - SLANG_RETURN_ON_FAIL(slang_createGlobalSessionWithoutStdLib(SLANG_API_VERSION, session.writeRef())); + SLANG_RETURN_ON_FAIL(slang_createGlobalSessionWithoutCoreModule(SLANG_API_VERSION, session.writeRef())); } ComPtr<slang::ICompileRequest> compileRequest; diff --git a/tools/slang-test/test-context.h b/tools/slang-test/test-context.h index a472248eb..6d45809ac 100644 --- a/tools/slang-test/test-context.h +++ b/tools/slang-test/test-context.h @@ -158,13 +158,13 @@ public: /// Timeout time for communication over connection. /// NOTE! If the timeout is hit, the connection will be destroyed, and then recreated. - /// For tests that compile the stdlib, if that takes this time, the stdlib will be + /// To test it, compile the core module, if it takes too much time, the core module will be /// repeatedly compiled and each time fail. /// NOTE! This timeout may be altered in the ctor for a specific target, the initializatoin /// value is just the default. /// - /// TODO(JS): We could split the stdlib compilation from other actions, and have timeout specific for - /// that. To do this we could have a 'compileStdLib' RPC method. + /// TODO(JS): We could split the core module compilation from other actions, and have timeout specific for + /// that. To do this we could have a 'compileCoreModule' RPC method. /// /// Current default is 60 seconds. Slang::Int connectionTimeOutInMs = 60 * 1000; |
