[DTrace-devel] [PATCH] test: Clean up bad-cast test

Kris Van Hees kris.van.hees at oracle.com
Mon Sep 11 16:51:34 UTC 2023


On Wed, Jul 27, 2022 at 12:56:48AM -0400, eugene.loh at oracle.com via DTrace-devel wrote:
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

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

... I'll fix the copyright year since it was my fault to overlook this patch
when it was posted.

> ---
>  test/unittest/types/err.D_CAST_INVAL.badcast.d | 13 +++----------
>  1 file changed, 3 insertions(+), 10 deletions(-)
> 
> diff --git a/test/unittest/types/err.D_CAST_INVAL.badcast.d b/test/unittest/types/err.D_CAST_INVAL.badcast.d
> index 8daec8b1..179fc47d 100644
> --- a/test/unittest/types/err.D_CAST_INVAL.badcast.d
> +++ b/test/unittest/types/err.D_CAST_INVAL.badcast.d
> @@ -1,23 +1,16 @@
>  /*
>   * Oracle Linux DTrace.
> - * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2006, 2022, 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.
>   */
>  
> -
>  /*
> - * ASSERTION:
> - *	Test an illegal cast - make sure dtrace catches it.
> - *
> - * SECTION: Aggregations/Clearing aggregations
> - *
> - *
> + * ASSERTION: Test an illegal cast - make sure dtrace catches it.
>   */
>  
> -
>  BEGIN
>  {
>  	(struct task_struct)trace(`max_pfn);
> -	exit();
> +	exit(0);
>  }
> -- 
> 2.18.4
> 
> 



More information about the DTrace-devel mailing list