tests(f2/repl): migrate failing pure eval test

Change-Id: Ic8db38346c2420b2d3c5ab51fe71ef0b88f826b3
This commit is contained in:
rootile
2026-06-11 16:27:49 +02:00
parent a50b85b7d6
commit da9f0c494e
5 changed files with 25 additions and 10 deletions
@@ -1,9 +0,0 @@
Checks that repl-overlays work correctly in pure eval mode
@args --pure-eval
@args --repl-overlays
@args ${PWD}/extra_data/repl-overlay-trivial.nix
nix-repl> foo
2
nix-repl> :quit
@@ -176,7 +176,6 @@ TEST_F(ReplSessionTest, tidy)
runReplTestPath(#name); \
}
REPL_TEST(repl_overlays_regression_l777);
REPL_TEST(stack_vars);
REPL_TEST(stacktrace_invalid_arg);
REPL_TEST(stacktrace_oob);
@@ -0,0 +1,25 @@
---
args: ['--pure-eval', '--repl-overlays', '{PWD}/repl-overlay-trivial.nix']
should_fail: True
---
```output
Lix VERSION
Type :? for help.
Loading 'repl-overlays'...
error: access to absolute path '/pwd/repl-overlay-trivial.nix' is forbidden in pure eval mode (use '--impure' to override)
```
> FIXME(rootile, 2026-06-09): This actually fails and the issue has been reopened.
> Big yaaaaaaay for the old stupid test suit which just didn't fail
>
> Remove the `should_fail` once this works again
Check that repl-overlays work correctly in pure eval mode
```nix
foo
:quit
```
```output
```