[DTrace-devel] [PATCH 4/7] test: Simplify tick-* timeouts

Kris Van Hees kris.van.hees at oracle.com
Sat Jul 27 00:32:22 UTC 2024


On Mon, Mar 11, 2024 at 09:00:54PM -0400, eugene.loh--- via DTrace-devel 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>

> ---
>  test/unittest/noresolve/tst.uaddr.sh | 5 ++---
>  test/unittest/noresolve/tst.usym.sh  | 5 ++---
>  test/unittest/profile-n/tst.func.sh  | 5 ++---
>  test/unittest/profile-n/tst.mod.sh   | 5 ++---
>  test/unittest/profile-n/tst.sym.sh   | 5 ++---
>  test/unittest/profile-n/tst.ufunc.sh | 5 ++---
>  test/unittest/profile-n/tst.umod.sh  | 5 ++---
>  test/unittest/profile-n/tst.usym.sh  | 5 ++---
>  8 files changed, 16 insertions(+), 24 deletions(-)
> 
> diff --git a/test/unittest/noresolve/tst.uaddr.sh b/test/unittest/noresolve/tst.uaddr.sh
> index 253844ec..a583c72d 100755
> --- a/test/unittest/noresolve/tst.uaddr.sh
> +++ b/test/unittest/noresolve/tst.uaddr.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2018, 2024, 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.
>  #
> @@ -16,8 +16,7 @@ script()
>  		@[uaddr(arg1)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/noresolve/tst.usym.sh b/test/unittest/noresolve/tst.usym.sh
> index ecf333d9..b426d5ac 100755
> --- a/test/unittest/noresolve/tst.usym.sh
> +++ b/test/unittest/noresolve/tst.usym.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2018, 2024, 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.
>  #
> @@ -16,8 +16,7 @@ script()
>  		@[usym(arg1)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.func.sh b/test/unittest/profile-n/tst.func.sh
> index cfb6e852..1179718a 100755
> --- a/test/unittest/profile-n/tst.func.sh
> +++ b/test/unittest/profile-n/tst.func.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[func(arg0)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 50/
> +	tick-5s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.mod.sh b/test/unittest/profile-n/tst.mod.sh
> index 92cb1eb2..8f5c6eaf 100755
> --- a/test/unittest/profile-n/tst.mod.sh
> +++ b/test/unittest/profile-n/tst.mod.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[mod(arg0)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.sym.sh b/test/unittest/profile-n/tst.sym.sh
> index 650b026f..bd6a4eae 100755
> --- a/test/unittest/profile-n/tst.sym.sh
> +++ b/test/unittest/profile-n/tst.sym.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[sym(arg0)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 50/
> +	tick-5s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.ufunc.sh b/test/unittest/profile-n/tst.ufunc.sh
> index 7457ae6d..74ab6201 100755
> --- a/test/unittest/profile-n/tst.ufunc.sh
> +++ b/test/unittest/profile-n/tst.ufunc.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[ufunc(arg1)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.umod.sh b/test/unittest/profile-n/tst.umod.sh
> index 995749ee..6a7382ea 100755
> --- a/test/unittest/profile-n/tst.umod.sh
> +++ b/test/unittest/profile-n/tst.umod.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[umod(arg1)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> diff --git a/test/unittest/profile-n/tst.usym.sh b/test/unittest/profile-n/tst.usym.sh
> index 61043261..5f2df717 100755
> --- a/test/unittest/profile-n/tst.usym.sh
> +++ b/test/unittest/profile-n/tst.usym.sh
> @@ -1,7 +1,7 @@
>  #!/bin/bash
>  #
>  # Oracle Linux DTrace.
> -# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2007, 2024, 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.
>  #
> @@ -15,8 +15,7 @@ script()
>  		@[usym(arg1)] = count();
>  	}
>  
> -	tick-100ms
> -	/i++ == 20/
> +	tick-2s
>  	{
>  		exit(0);
>  	}
> -- 
> 2.18.4
> 
> 
> _______________________________________________
> 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