From 359444360b42c428ae10e1ad612a6f4966f11652 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 22 Oct 2022 16:27:27 +0300 Subject: test(tvix/eval): add a test for observing an infinite attribute set Note that this test (ironically) fails if the observer is used (e.g. with --trace-runtime), but that's a separate issue. Change-Id: I952eaeac8b5a7acce9c66cd4744ec570280748e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7055 Reviewed-by: grfn Tested-by: BuildkiteCI --- tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix new file mode 100644 index 0000000000..684c88f800 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-observe-infinite-attrs.nix @@ -0,0 +1,4 @@ +# The below attribute set is infinitely large, but we should be able +# to observe it as long as we don't access its entire value. + +let as = { x = 123; y = as; }; in builtins.attrNames as.y.y -- cgit 1.4.1