Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc566b8e

Browse files
committed
Update test_toolchain_verify.cpp
1 parenteaa57fd commitc566b8e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎buildcc/lib/toolchain/test/test_toolchain_verify.cpp‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,18 @@ TEST(ToolchainVerifyTestGroup, VerifyToolchain_Custom_VerificationFailure) {
274274
CHECK_THROWS(std::exception, custom.Verify(config));
275275
}
276276

277+
TEST(ToolchainVerifyTestGroup, VerifyToolchain_Undefined_AddVerificationFunc) {
278+
CHECK_THROWS(std::exception,
279+
(buildcc::Toolchain::AddVerificationFunc(
280+
buildcc::ToolchainId::Undefined,
281+
[](const buildcc::ToolchainExecutables &executables)
282+
-> std::optional<buildcc::ToolchainCompilerInfo> {
283+
(void)executables;
284+
return {};
285+
},
286+
"undefined_verification_func")));
287+
}
288+
277289
TEST(ToolchainVerifyTestGroup,
278290
VerifyToolchain_Msvc_CompilerVersionAndTargetArchFailure) {
279291
buildcc::Toolchainmsvc(buildcc::ToolchainId::Msvc,"msvc","cl","cl","cl",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp