From 887d530e62f7495de3a8289d07bf11a76390555b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 22 Dec 2010 11:49:25 +0100 Subject: maint: correct test-related comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tests/mv/i-3: Adjust comment to match just-changed code. Spotted by Pádraig Brady. * tests/init.cfg (retry_delay_): Correct spelling of function name in usage example. --- tests/init.cfg | 2 +- tests/mv/i-3 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/init.cfg b/tests/init.cfg index 2270c0d18..a7860e740 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -373,7 +373,7 @@ working_umask_or_skip_() # Retry a function requiring a sufficient delay to _pass_ # using a truncated exponential backoff method. -# Example: retry_delay dd_reblock_1 .1 6 +# Example: retry_delay_ dd_reblock_1 .1 6 # This example will call the dd_reblock_1 function with # an initial delay of .1 second and call it at most 6 times # with a max delay of 3.2s (doubled each time), or a total of 6.3s diff --git a/tests/mv/i-3 b/tests/mv/i-3 index 7b77273c9..d2fdf087e 100755 --- a/tests/mv/i-3 +++ b/tests/mv/i-3 @@ -39,7 +39,7 @@ test -r "$tty" 2>&1 \ mv f g < $tty > out 2>&1 & pid=$! -# Wait up to 3.1s for the expected prompt +# Test for the expected prompt; sleep upon non-match. check_overwrite_prompt() { local delay="$1" @@ -48,6 +48,8 @@ check_overwrite_prompt() *) sleep $delay; return 1;; esac } + +# Wait for up to 12.7 seconds for the expected prompt. retry_delay_ check_overwrite_prompt .1 7 || fail=1 kill $pid -- cgit v1.2.3-54-g00ecf