Skip to content

Commit 57f526e

Browse files
committed
Fix nix_api_store_test.nix_eval_state_lookup_path when run on its own
Currently, --gtest_filter=nix_api_store_test.nix_eval_state_lookup_path will result in: terminating due to unexpected unrecoverable internal error: Assertion 'gcInitialised' failed in void nix::assertGCInitialized() at ../src/libexpr/eval-gc.cc:138 Changing the test fixture to _exr_test causes GC to be initialised.
1 parent 1f2a994 commit 57f526e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexpr-tests/nix_api_expr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace nixC {
1616

17-
TEST_F(nix_api_store_test, nix_eval_state_lookup_path)
17+
TEST_F(nix_api_expr_test, nix_eval_state_lookup_path)
1818
{
1919
auto tmpDir = nix::createTempDir();
2020
auto delTmpDir = std::make_unique<nix::AutoDelete>(tmpDir, true);

0 commit comments

Comments
 (0)