[DTrace-devel] [PATCH] test: remove tst.alignring.d

Kris Van Hees kris.van.hees at oracle.com
Fri Apr 22 06:36:40 UTC 2022


On Thu, Apr 21, 2022 at 02:31:23PM -0400, eugene.loh--- via DTrace-devel wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
> 
> This test produces excessive output, writing 100Ks of lines to runtest.log.
> It tests nothing, in that the output is not checked.  Also, it targets ring
> buffering, which means something entirely different in the current
> implementation than it did in Solaris.
> 
> Remove the test.
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

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

... and added to dev

> ---
>  test/unittest/buffering/tst.alignring.d | 64 -------------------------
>  1 file changed, 64 deletions(-)
>  delete mode 100644 test/unittest/buffering/tst.alignring.d
> 
> diff --git a/test/unittest/buffering/tst.alignring.d b/test/unittest/buffering/tst.alignring.d
> deleted file mode 100644
> index a2f9d549..00000000
> --- a/test/unittest/buffering/tst.alignring.d
> +++ /dev/null
> @@ -1,64 +0,0 @@
> -/*
> - * Oracle Linux DTrace.
> - * Copyright (c) 2006, 2020, 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:
> - *   Positive test for ring buffer policy.
> - *
> - * SECTION: Buffers and Buffering/ring Policy;
> - *	Buffers and Buffering/Buffer Sizes;
> - *	Options and Tunables/bufsize;
> - *	Options and Tunables/bufpolicy
> - */
> -
> -/* Incurs swapping, so
> - *  @@timeout: 15
> - */
> -
> -#pragma D option bufpolicy=ring
> -#pragma D option bufsize=4k
> -
> -profile:::profile-1009hz
> -{
> -	printf("%x %x\n", (int)0xaaaa, (int)0xbbbb);
> -}
> -
> -profile:::profile-1237hz
> -{
> -	printf("%x %x %x %x %x %x\n",
> -	    (int)0xcccc,
> -	    (int)0xdddd,
> -	    (int)0xeeee,
> -	    (int)0xffff,
> -	    (int)0xabab,
> -	    (int)0xacac);
> -	printf("%x %x\n",
> -	    (uint64_t)0xaabbaabbaabbaabb,
> -	    (int)0xadad);
> -}
> -
> -profile:::profile-1789hz
> -{
> -	printf("%x %x %x %x %x\n",
> -	    (int)0xaeae,
> -	    (int)0xafaf,
> -	    (unsigned char)0xaa,
> -	    (int)0xbcbc,
> -	    (int)0xbdbd);
> -}
> -
> -profile-1543hz
> -{}
> -
> -profile-1361hz
> -{}
> -
> -tick-1sec
> -/i++ >= 10/
> -{
> -	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