From 99175779c42b1e48a86bf774cefc07b1c35b596c Mon Sep 17 00:00:00 2001 From: rootile Date: Tue, 9 Jun 2026 16:03:43 +0200 Subject: [PATCH] tests(f/repl): remove duplicate repl tests Change-Id: I07635a7f62bf56b4ee9526b5a34f51049554e875 --- .../data/basic_repl.test | 59 ------------------- .../data/extra_data/repl-overlay-fail.nix | 1 - .../data/repl_overlays_error.test | 22 ------- .../repl_characterization.cc | 2 - 4 files changed, 84 deletions(-) delete mode 100644 tests/functional/repl_characterization/data/basic_repl.test delete mode 100644 tests/functional/repl_characterization/data/extra_data/repl-overlay-fail.nix delete mode 100644 tests/functional/repl_characterization/data/repl_overlays_error.test diff --git a/tests/functional/repl_characterization/data/basic_repl.test b/tests/functional/repl_characterization/data/basic_repl.test deleted file mode 100644 index acc6d89f9..000000000 --- a/tests/functional/repl_characterization/data/basic_repl.test +++ /dev/null @@ -1,59 +0,0 @@ - nix-repl> 1 + 1 - 2 - - nix-repl> :doc builtins.add - Synopsis: builtins.add e1 e2 - - Return the sum of the numbers e1 and e2. - - - nix-repl> f = a: "" + a - -Expect the trace to not contain any traceback: - - nix-repl> f 2 - error: - … while concatenating - at «string»:1:11: - 1| f = a: "" + a - | ^ - - error: cannot coerce an integer to a string: 2 - - nix-repl> :te - showing error traces - -Expect the trace to have traceback: - - nix-repl> f 2 - error: - … from call site - at «string»:1:1: - 1| f 2 - | ^ - - … while calling anonymous lambda - at «string»:1:5: - 1| f = a: "" + a - | ^ - - … while concatenating - at «string»:1:11: - 1| f = a: "" + a - | ^ - - error: cannot coerce an integer to a string: 2 - -Turning it off should also work: - - nix-repl> :te - not showing error traces - - nix-repl> f 2 - error: - … while concatenating - at «string»:1:11: - 1| f = a: "" + a - | ^ - - error: cannot coerce an integer to a string: 2 diff --git a/tests/functional/repl_characterization/data/extra_data/repl-overlay-fail.nix b/tests/functional/repl_characterization/data/extra_data/repl-overlay-fail.nix deleted file mode 100644 index 426127916..000000000 --- a/tests/functional/repl_characterization/data/extra_data/repl-overlay-fail.nix +++ /dev/null @@ -1 +0,0 @@ -info: final: prev: builtins.abort "uh oh!" diff --git a/tests/functional/repl_characterization/data/repl_overlays_error.test b/tests/functional/repl_characterization/data/repl_overlays_error.test deleted file mode 100644 index a28708091..000000000 --- a/tests/functional/repl_characterization/data/repl_overlays_error.test +++ /dev/null @@ -1,22 +0,0 @@ -`repl-overlays` that fail to evaluate should error. -@args --repl-overlays -@args ${PWD}/extra_data/repl-overlay-fail.nix -@should-start false - error: - … while evaluating final - at «string»:6:1: - 5| in - 6| final - | ^ - 7| - - … while calling the 'foldl'' builtin - at «string»:4:11: - 3| let - 4| final = builtins.foldl' (prev: function: prev // (function info final prev)) initial functions; - | ^ - 5| in - - (stack trace truncated; use '--show-trace' to show the full trace) - - error: evaluation aborted with the following error message: 'uh oh!' diff --git a/tests/functional/repl_characterization/repl_characterization.cc b/tests/functional/repl_characterization/repl_characterization.cc index 739d24d1b..17da70318 100644 --- a/tests/functional/repl_characterization/repl_characterization.cc +++ b/tests/functional/repl_characterization/repl_characterization.cc @@ -176,7 +176,6 @@ TEST_F(ReplSessionTest, tidy) runReplTestPath(#name); \ } -REPL_TEST(basic_repl); REPL_TEST(builtins_warn) REPL_TEST(no_nested_debuggers); REPL_TEST(regression_9917); @@ -189,7 +188,6 @@ REPL_TEST(repl_overlays_regression_l777); REPL_TEST(repl_overlays_compose); REPL_TEST(repl_overlays_destructure_without_dotdotdot_errors); REPL_TEST(repl_overlays_destructure_without_formals_ok); -REPL_TEST(repl_overlays_error); REPL_TEST(repl_printing); REPL_TEST(stack_vars); REPL_TEST(errors);