diff options
Diffstat (limited to 'third_party/nix/src/tests/lang/evalstore-okay-context.nix')
-rw-r--r-- | third_party/nix/src/tests/lang/evalstore-okay-context.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/evalstore-okay-context.nix b/third_party/nix/src/tests/lang/evalstore-okay-context.nix new file mode 100644 index 000000000000..90f82abe1c36 --- /dev/null +++ b/third_party/nix/src/tests/lang/evalstore-okay-context.nix @@ -0,0 +1,6 @@ +let s = "foo ${builtins.substring 33 100 (baseNameOf "${./evalstore-okay-context.nix}")} bar"; +in + if s != "foo evalstore-okay-context.nix bar" + then abort "context not discarded" + else builtins.unsafeDiscardStringContext s + |