+2
−0
include/kunit/try-catch.h
0 → 100644
+75
−0
+2
−1
+122
−15
lib/kunit/try-catch.c
0 → 100644
+118
−0
Loading
Gitlab 现已全面支持 git over ssh 与 git over https。通过 HTTPS 访问请配置带有 read_repository / write_repository 权限的 Personal access token。通过 SSH 端口访问请使用 22 端口或 13389 端口。如果使用CAS注册了账户但不知道密码,可以自行至设置中更改;如有其他问题,请发邮件至 service@cra.moe 寻求协助。
Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use them to state all the preconditions for your test. Logically speaking, these are the premises of the test case, so if a premise isn't true, there is no point in continuing the test case because there are no conclusions that can be drawn without the premises. Whereas, the expectation is the thing you are trying to prove. Signed-off-by:Brendan Higgins <brendanhiggins@google.com> Reviewed-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by:
Logan Gunthorpe <logang@deltatee.com> Reviewed-by:
Stephen Boyd <sboyd@kernel.org> Signed-off-by:
Shuah Khan <skhan@linuxfoundation.org>
CRA Git | Maintained and supported by SUSTech CRA and CCSE