[DTrace-devel] [PATCH] test: Allow duplicate lines for rawfbt synthetic tests
Kris Van Hees
kris.van.hees at oracle.com
Wed Mar 19 17:47:05 UTC 2025
On Wed, Mar 19, 2025 at 01:42:25PM -0400, eugene.loh at oracle.com wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> It is possible for the probe in these tests to fire "concurrently"
> on multiple CPUs, leading to duplicate lines of output. Add
> post processing to reduce multiple lines of duplicate output.
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> test/unittest/providers/rawfbt/tst.synthetic-entry.r.p | 3 +++
> test/unittest/providers/rawfbt/tst.synthetic-return.r.p | 3 +++
> 2 files changed, 6 insertions(+)
> create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-return.r.p
>
> diff --git a/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> new file mode 100755
> index 000000000..18171f044
> --- /dev/null
> +++ b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +uniq
> diff --git a/test/unittest/providers/rawfbt/tst.synthetic-return.r.p b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
> new file mode 100755
> index 000000000..18171f044
> --- /dev/null
> +++ b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +uniq
> --
> 2.43.5
>
More information about the DTrace-devel
mailing list