From 150ea50391a9457ee75375204c6d17209fc4eb22 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 18 Feb 2024 15:46:24 +1100 Subject: [PATCH] Remove unused -within-next ui_out switch --- test/run | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/test/run b/test/run index cb6e7bc1..95f71a9e 100755 --- a/test/run +++ b/test/run @@ -197,29 +197,6 @@ ui_out() { ! printf %s "$event" | grep "$@" do :; done ;; - -within-next) - shift - candidate_count=$1 - shift - candidates= - found=false - while [ $candidate_count -gt 0 ]; do - read -r event <&4 - if [ "$1" = "$event" ]; then - found=true - elif ! $found; then - candidates="$candidates${indent} $event -" - fi - candidate_count=$(( candidate_count - 1 )) - done - if ! $found; then - fail_ifn - printf "${indent} Failed to find:\n" - printf "${indent} %s\n" "$1" - printf "${indent} Candidates:\n%s" "$candidates" - fi - ;; *) read -r event <&4 assert_eq "$1" "$event"