[DTrace-devel] [PATCH] Extend a few test timeouts

Kris Van Hees kris.van.hees at oracle.com
Wed Apr 20 20:10:46 UTC 2022


On Fri, Jun 18, 2021 at 02:44:32PM -0400, eugene.loh at oracle.com wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>

... with copyright year updated (due to me being very slow reviewing it).

I'll make the change and put it on dev since it's my fault for not getting to
this sooner..

> ---
>  test/unittest/actions/exit/tst.kill.sh               | 4 ++--
>  test/unittest/dtrace-util/tst.ListProbesNameEmpty.sh | 4 ++--
>  test/unittest/providers/tst.dtrace_cleanup.sh        | 4 ++--
>  3 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/test/unittest/actions/exit/tst.kill.sh b/test/unittest/actions/exit/tst.kill.sh
> index 86080c14..26e2309f 100755
> --- a/test/unittest/actions/exit/tst.kill.sh
> +++ b/test/unittest/actions/exit/tst.kill.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
>  # Licensed under the Universal Permissive License v 1.0 as shown at
>  # http://oss.oracle.com/licenses/upl.
>  #
> @@ -10,7 +10,7 @@ dtrace=$1
>  out=$tmpdir/output.$$
>  
>  watch_output_for() {
> -    for iter in 1 2 3 4 5 6; do
> +    for iter in `seq 10`; do
>          sleep 1
>          if grep -q $1 $out; then
>              iter=0
> diff --git a/test/unittest/dtrace-util/tst.ListProbesNameEmpty.sh b/test/unittest/dtrace-util/tst.ListProbesNameEmpty.sh
> index 0e7c7b11..5a6ec4e1 100755
> --- a/test/unittest/dtrace-util/tst.ListProbesNameEmpty.sh
> +++ b/test/unittest/dtrace-util/tst.ListProbesNameEmpty.sh
> @@ -1,12 +1,12 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
>  # Licensed under the Universal Permissive License v 1.0 as shown at
>  # http://oss.oracle.com/licenses/upl.
>  #
>  
> -# @@timeout: 80
> +# @@timeout: 160
>  
>  ##
>  #
> diff --git a/test/unittest/providers/tst.dtrace_cleanup.sh b/test/unittest/providers/tst.dtrace_cleanup.sh
> index 98e1885d..f53ec210 100755
> --- a/test/unittest/providers/tst.dtrace_cleanup.sh
> +++ b/test/unittest/providers/tst.dtrace_cleanup.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
>  # Licensed under the Universal Permissive License v 1.0 as shown at
>  # http://oss.oracle.com/licenses/upl.
>  
> @@ -20,7 +20,7 @@ out=/tmp/output.$$
>  $dtrace $dt_flags -n BEGIN,END &>> $out &
>  pid=$!
>  
> -for iter in 1 2 3 4 5 6; do
> +for iter in `seq 10`; do
>      sleep 1
>      if grep -q :BEGIN $out; then
>          iter=0
> -- 
> 2.27.0
> 
> 
> _______________________________________________
> DTrace-devel mailing list
> DTrace-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/dtrace-devel



More information about the DTrace-devel mailing list