diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:21:01 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:21:01 +0100 |
commit | 7614aa97975f3e6e36b6ffbd9fec34462021ab39 (patch) | |
tree | ebb2521607d7b5a30fadcc13e0af889159d5af2e /tests/unit/libexpr | |
parent | 64a269ef73b111d49037812bd899b5cb883158ef (diff) |
Merge pull request #4093 from matthewbauer/eval-system
Add eval-system option
(cherry picked from commit 071dbbee33af9f27338c3e53e4ea067dbfa14010)
Change-Id: Ia81358c8cfb60241da07a4d0e84b9ee62a18a53f
Diffstat (limited to 'tests/unit/libexpr')
-rw-r--r-- | tests/unit/libexpr/primops.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/libexpr/primops.cc b/tests/unit/libexpr/primops.cc index ce3b5d11f..71e838b32 100644 --- a/tests/unit/libexpr/primops.cc +++ b/tests/unit/libexpr/primops.cc @@ -1,6 +1,8 @@ #include <gmock/gmock.h> #include <gtest/gtest.h> +#include "eval-settings.hh" + #include "tests/libexpr.hh" namespace nix { @@ -614,7 +616,7 @@ namespace nix { TEST_F(PrimOpTest, currentSystem) { auto v = eval("builtins.currentSystem"); - ASSERT_THAT(v, IsStringEq(settings.thisSystem.get())); + ASSERT_THAT(v, IsStringEq(evalSettings.getCurrentSystem())); } TEST_F(PrimOpTest, derivation) { |