1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 16:29:36 +01:00

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.
This commit is contained in:
David McFarland 2025-11-15 14:02:35 -04:00
parent 1f2a994fb9
commit 57f526ecda

View file

@ -14,7 +14,7 @@
namespace nixC {
TEST_F(nix_api_store_test, nix_eval_state_lookup_path)
TEST_F(nix_api_expr_test, nix_eval_state_lookup_path)
{
auto tmpDir = nix::createTempDir();
auto delTmpDir = std::make_unique<nix::AutoDelete>(tmpDir, true);