fix(3p/nix): fix more clang-tidy warnings
Change-Id: I1e8a4852ffa450c552a4cdfc709554799854934c Reviewed-on: https://cl.tvl.fyi/c/depot/+/1416 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
fba4d145f8
commit
3ce4a6cc18
3 changed files with 7 additions and 4 deletions
6
third_party/nix/src/tests/language-tests.cc
vendored
6
third_party/nix/src/tests/language-tests.cc
vendored
|
|
@ -212,13 +212,13 @@ TEST_P(EvalSuccessTest, Fails) {
|
|||
EvalState state({}, ref<Store>(store));
|
||||
auto path = GetParam();
|
||||
|
||||
Expr* expr;
|
||||
EXPECT_NO_THROW(expr = state.parseExprFromFile(GetParam().string()))
|
||||
Expr* expr = nullptr;
|
||||
ASSERT_NO_THROW(expr = state.parseExprFromFile(GetParam().string()))
|
||||
<< path.stem().string() << ": should parse successfully";
|
||||
|
||||
Value result;
|
||||
|
||||
EXPECT_NO_THROW({
|
||||
ASSERT_NO_THROW({
|
||||
state.eval(expr, result);
|
||||
state.forceValueDeep(result);
|
||||
}) << path.stem().string()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue