[DTrace-devel] [PATCH 12/12] test: tst.selfarray2.d should not PASS

Kris Van Hees kris.van.hees at oracle.com
Fri May 12 14:10:11 UTC 2023


Please ignore the 12/12....  forgot to edit that out.

On Fri, May 12, 2023 at 09:31:49AM -0400, Kris Van Hees via DTrace-devel wrote:
> Due to the drop support triggering bad address faults, this test ended
> up reporting XPASS which it really should not.  Added an explicit ERROR
> clause to detect faults (and report failure if a fault occurs).
> 
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>  test/unittest/scalars/tst.selfarray2.d | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/test/unittest/scalars/tst.selfarray2.d b/test/unittest/scalars/tst.selfarray2.d
> index 51311dfa..3c8140d6 100644
> --- a/test/unittest/scalars/tst.selfarray2.d
> +++ b/test/unittest/scalars/tst.selfarray2.d
> @@ -1,6 +1,6 @@
>  /*
>   * Oracle Linux DTrace.
> - * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2006, 2023, 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.
>   */
> @@ -44,3 +44,8 @@ tick-1sec
>  {
>  	exit(0);
>  }
> +
> +ERROR
> +{
> +	exit(1);
> +}
> -- 
> 2.40.1
> 
> 
> _______________________________________________
> 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