[DTrace-devel] [PATCH] More printf tests (merge with previous patch)

Kris Van Hees kris.van.hees at oracle.com
Mon May 18 10:46:53 PDT 2020


This one isn't quite ready yet for review - feel free to look at it but please
know that it is still a work-in-progress.

It will be merged into the patch that implements the printf() action.

On Mon, May 18, 2020 at 10:44:14AM -0700, Kris Van Hees wrote:
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>  test/unittest/actions/printf/tst.conv_A.d     | 21 ++++++++++++
>  .../actions/printf/tst.conv_E_double.d        | 22 ++++++++++++
>  .../actions/printf/tst.conv_E_double.r        |  1 +
>  .../actions/printf/tst.conv_E_float.d         | 22 ++++++++++++
>  .../actions/printf/tst.conv_E_float.r         |  1 +
>  .../actions/printf/tst.conv_G_double.d        | 22 ++++++++++++
>  .../actions/printf/tst.conv_G_double.r        |  1 +
>  .../actions/printf/tst.conv_G_float.d         | 22 ++++++++++++
>  .../actions/printf/tst.conv_G_float.r         |  1 +
>  .../printf/tst.conv_T.r}                      |  0
>  .../printf/tst.conv_T.sh}                     |  1 -
>  .../printf/tst.conv_Y.r}                      |  0
>  .../printf/tst.conv_Y.sh}                     |  1 -
>  test/unittest/actions/printf/tst.conv_a.d     | 20 +++++++++++
>  test/unittest/actions/printf/tst.conv_a.r     |  1 +
>  test/unittest/actions/printf/tst.conv_c.d     | 20 +++++++++++
>  .../actions/printf/tst.conv_d_signed.d        | 20 +++++++++++
>  .../actions/printf/tst.conv_d_unsigned.d      | 20 +++++++++++
>  .../actions/printf/tst.conv_e_double.d        | 22 ++++++++++++
>  .../actions/printf/tst.conv_e_double.r        |  1 +
>  .../actions/printf/tst.conv_e_float.d         | 22 ++++++++++++
>  .../actions/printf/tst.conv_e_float.r         |  1 +
>  .../actions/printf/tst.conv_f_double.d        | 22 ++++++++++++
>  .../actions/printf/tst.conv_f_double.r        |  1 +
>  .../actions/printf/tst.conv_f_float.d         | 22 ++++++++++++
>  .../actions/printf/tst.conv_f_float.r         |  1 +
>  .../actions/printf/tst.conv_g_double.d        | 22 ++++++++++++
>  .../actions/printf/tst.conv_g_double.r        |  1 +
>  .../actions/printf/tst.conv_g_float.d         | 22 ++++++++++++
>  .../actions/printf/tst.conv_g_float.r         |  1 +
>  test/unittest/printf/tst.print-f.d            | 31 -----------------
>  test/unittest/printf/tst.print-f.r            |  4 ---
>  test/unittest/printf/tst.printeE.d            | 34 -------------------
>  test/unittest/printf/tst.printeE.r            |  6 ----
>  test/unittest/printf/tst.printgG.d            | 34 -------------------
>  test/unittest/printf/tst.printgG.r            |  6 ----
>  36 files changed, 332 insertions(+), 117 deletions(-)
>  create mode 100644 test/unittest/actions/printf/tst.conv_A.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_E_double.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_E_double.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_E_float.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_E_float.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_G_double.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_G_double.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_G_float.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_G_float.r
>  rename test/unittest/{printf/tst.printT.r => actions/printf/tst.conv_T.r} (100%)
>  rename test/unittest/{printf/tst.printT.sh => actions/printf/tst.conv_T.sh} (97%)
>  rename test/unittest/{printf/tst.printY.r => actions/printf/tst.conv_Y.r} (100%)
>  rename test/unittest/{printf/tst.printY.sh => actions/printf/tst.conv_Y.sh} (97%)
>  create mode 100644 test/unittest/actions/printf/tst.conv_a.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_a.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_c.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_d_signed.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_d_unsigned.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_e_double.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_e_double.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_e_float.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_e_float.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_f_double.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_f_double.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_f_float.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_f_float.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_g_double.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_g_double.r
>  create mode 100644 test/unittest/actions/printf/tst.conv_g_float.d
>  create mode 100644 test/unittest/actions/printf/tst.conv_g_float.r
>  delete mode 100644 test/unittest/printf/tst.print-f.d
>  delete mode 100644 test/unittest/printf/tst.print-f.r
>  delete mode 100644 test/unittest/printf/tst.printeE.d
>  delete mode 100644 test/unittest/printf/tst.printeE.r
>  delete mode 100644 test/unittest/printf/tst.printgG.d
>  delete mode 100644 test/unittest/printf/tst.printgG.r
> 
> diff --git a/test/unittest/actions/printf/tst.conv_A.d b/test/unittest/actions/printf/tst.conv_A.d
> new file mode 100644
> index 00000000..79c07c7f
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_A.d
> @@ -0,0 +1,21 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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.
> + */
> +/* @@xfail: dtv2 */
> +
> +/*
> + * ASSERTION: The printf action supports '%a' for userspace addresses.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +BEGIN
> +{
> +	printf("%A", &``main);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_E_double.d b/test/unittest/actions/printf/tst.conv_E_double.d
> new file mode 100644
> index 00000000..71901789
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_E_double.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%E' for double floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +double d;
> +
> +BEGIN
> +{
> +	printf("%E", d);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_E_double.r b/test/unittest/actions/printf/tst.conv_E_double.r
> new file mode 100644
> index 00000000..09943084
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_E_double.r
> @@ -0,0 +1 @@
> +0.000000E+00
> diff --git a/test/unittest/actions/printf/tst.conv_E_float.d b/test/unittest/actions/printf/tst.conv_E_float.d
> new file mode 100644
> index 00000000..8075fc3a
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_E_float.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%E' for floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +float f;
> +
> +BEGIN
> +{
> +	printf("%E", f);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_E_float.r b/test/unittest/actions/printf/tst.conv_E_float.r
> new file mode 100644
> index 00000000..09943084
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_E_float.r
> @@ -0,0 +1 @@
> +0.000000E+00
> diff --git a/test/unittest/actions/printf/tst.conv_G_double.d b/test/unittest/actions/printf/tst.conv_G_double.d
> new file mode 100644
> index 00000000..1e605f47
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_G_double.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%G' for double floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +double d;
> +
> +BEGIN
> +{
> +	printf("%G", d);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_G_double.r b/test/unittest/actions/printf/tst.conv_G_double.r
> new file mode 100644
> index 00000000..573541ac
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_G_double.r
> @@ -0,0 +1 @@
> +0
> diff --git a/test/unittest/actions/printf/tst.conv_G_float.d b/test/unittest/actions/printf/tst.conv_G_float.d
> new file mode 100644
> index 00000000..59f1b2c2
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_G_float.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%G' for floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +float f;
> +
> +BEGIN
> +{
> +	printf("%G", f);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_G_float.r b/test/unittest/actions/printf/tst.conv_G_float.r
> new file mode 100644
> index 00000000..573541ac
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_G_float.r
> @@ -0,0 +1 @@
> +0
> diff --git a/test/unittest/printf/tst.printT.r b/test/unittest/actions/printf/tst.conv_T.r
> similarity index 100%
> rename from test/unittest/printf/tst.printT.r
> rename to test/unittest/actions/printf/tst.conv_T.r
> diff --git a/test/unittest/printf/tst.printT.sh b/test/unittest/actions/printf/tst.conv_T.sh
> similarity index 97%
> rename from test/unittest/printf/tst.printT.sh
> rename to test/unittest/actions/printf/tst.conv_T.sh
> index f5ec47e4..36ee32e4 100755
> --- a/test/unittest/printf/tst.printT.sh
> +++ b/test/unittest/actions/printf/tst.conv_T.sh
> @@ -9,7 +9,6 @@ if [ $# != 1 ]; then
>  	echo expected one argument: '<'dtrace-path'>'
>  	exit 2
>  fi
> -# @@xfail: dtv2
>  
>  dtrace=$1
>  
> diff --git a/test/unittest/printf/tst.printY.r b/test/unittest/actions/printf/tst.conv_Y.r
> similarity index 100%
> rename from test/unittest/printf/tst.printY.r
> rename to test/unittest/actions/printf/tst.conv_Y.r
> diff --git a/test/unittest/printf/tst.printY.sh b/test/unittest/actions/printf/tst.conv_Y.sh
> similarity index 97%
> rename from test/unittest/printf/tst.printY.sh
> rename to test/unittest/actions/printf/tst.conv_Y.sh
> index 64b65ec9..18fe56ee 100755
> --- a/test/unittest/printf/tst.printY.sh
> +++ b/test/unittest/actions/printf/tst.conv_Y.sh
> @@ -9,7 +9,6 @@ if [ $# != 1 ]; then
>  	echo expected one argument: '<'dtrace-path'>'
>  	exit 2
>  fi
> -# @@xfail: dtv2
>  
>  dtrace=$1
>  
> diff --git a/test/unittest/actions/printf/tst.conv_a.d b/test/unittest/actions/printf/tst.conv_a.d
> new file mode 100644
> index 00000000..a5640301
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_a.d
> @@ -0,0 +1,20 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%a' for kernel addresses.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +BEGIN
> +{
> +	printf("%a", &`max_pfn);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_a.r b/test/unittest/actions/printf/tst.conv_a.r
> new file mode 100644
> index 00000000..335cdd50
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_a.r
> @@ -0,0 +1 @@
> +{ptr}
> diff --git a/test/unittest/actions/printf/tst.conv_c.d b/test/unittest/actions/printf/tst.conv_c.d
> new file mode 100644
> index 00000000..2ac1a13b
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_c.d
> @@ -0,0 +1,20 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%c' for 8-bit character values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +BEGIN
> +{
> +	printf("%c", 0x41);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_d_signed.d b/test/unittest/actions/printf/tst.conv_d_signed.d
> new file mode 100644
> index 00000000..6774b97e
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_d_signed.d
> @@ -0,0 +1,20 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%d' for signed integers.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +BEGIN
> +{
> +	printf("%d", (int)-12345);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_d_unsigned.d b/test/unittest/actions/printf/tst.conv_d_unsigned.d
> new file mode 100644
> index 00000000..1f5307e3
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_d_unsigned.d
> @@ -0,0 +1,20 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%d' for unsigned integers.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +BEGIN
> +{
> +	printf("%d", (uint)-12345);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_e_double.d b/test/unittest/actions/printf/tst.conv_e_double.d
> new file mode 100644
> index 00000000..0ce27e03
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_e_double.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%e' for double floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +double d;
> +
> +BEGIN
> +{
> +	printf("%e", d);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_e_double.r b/test/unittest/actions/printf/tst.conv_e_double.r
> new file mode 100644
> index 00000000..36e4eab1
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_e_double.r
> @@ -0,0 +1 @@
> +0.000000e+00
> diff --git a/test/unittest/actions/printf/tst.conv_e_float.d b/test/unittest/actions/printf/tst.conv_e_float.d
> new file mode 100644
> index 00000000..f552757a
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_e_float.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%e' for floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +float f;
> +
> +BEGIN
> +{
> +	printf("%e", f);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_e_float.r b/test/unittest/actions/printf/tst.conv_e_float.r
> new file mode 100644
> index 00000000..36e4eab1
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_e_float.r
> @@ -0,0 +1 @@
> +0.000000e+00
> diff --git a/test/unittest/actions/printf/tst.conv_f_double.d b/test/unittest/actions/printf/tst.conv_f_double.d
> new file mode 100644
> index 00000000..75e4811d
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_f_double.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%f' for double floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +double d;
> +
> +BEGIN
> +{
> +	printf("%f", d);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_f_double.r b/test/unittest/actions/printf/tst.conv_f_double.r
> new file mode 100644
> index 00000000..945da8ff
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_f_double.r
> @@ -0,0 +1 @@
> +0.000000
> diff --git a/test/unittest/actions/printf/tst.conv_f_float.d b/test/unittest/actions/printf/tst.conv_f_float.d
> new file mode 100644
> index 00000000..0b0c3190
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_f_float.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%f' for floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +float f;
> +
> +BEGIN
> +{
> +	printf("%f", f);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_f_float.r b/test/unittest/actions/printf/tst.conv_f_float.r
> new file mode 100644
> index 00000000..945da8ff
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_f_float.r
> @@ -0,0 +1 @@
> +0.000000
> diff --git a/test/unittest/actions/printf/tst.conv_g_double.d b/test/unittest/actions/printf/tst.conv_g_double.d
> new file mode 100644
> index 00000000..a8a063a0
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_g_double.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%g' for double floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +double d;
> +
> +BEGIN
> +{
> +	printf("%g", d);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_g_double.r b/test/unittest/actions/printf/tst.conv_g_double.r
> new file mode 100644
> index 00000000..573541ac
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_g_double.r
> @@ -0,0 +1 @@
> +0
> diff --git a/test/unittest/actions/printf/tst.conv_g_float.d b/test/unittest/actions/printf/tst.conv_g_float.d
> new file mode 100644
> index 00000000..d5eea4e3
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_g_float.d
> @@ -0,0 +1,22 @@
> +/*
> + * Oracle Linux DTrace.
> + * Copyright (c) 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: The printf action supports '%g' for floating point values.
> + *
> + * SECTION: Actions/printf()
> + */
> +
> +#pragma D option quiet
> +
> +float f;
> +
> +BEGIN
> +{
> +	printf("%g", f);
> +	exit(0);
> +}
> diff --git a/test/unittest/actions/printf/tst.conv_g_float.r b/test/unittest/actions/printf/tst.conv_g_float.r
> new file mode 100644
> index 00000000..573541ac
> --- /dev/null
> +++ b/test/unittest/actions/printf/tst.conv_g_float.r
> @@ -0,0 +1 @@
> +0
> diff --git a/test/unittest/printf/tst.print-f.d b/test/unittest/printf/tst.print-f.d
> deleted file mode 100644
> index 37b9cbe3..00000000
> --- a/test/unittest/printf/tst.print-f.d
> +++ /dev/null
> @@ -1,31 +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.
> - */
> -/* @@xfail: dtv2 */
> -
> -/*
> - * ASSERTION:
> - *  Test %f format printing.
> - *
> - * SECTION: Output Formatting/printf()
> - *
> - */
> -
> -#pragma D option quiet
> -
> -float f;
> -double d;
> -
> -BEGIN
> -{
> -	printf("\n");
> -
> -	printf("%%f = %f\n", f);
> -	printf("%%f = %f\n", d);
> -
> -
> -	exit(0);
> -}
> diff --git a/test/unittest/printf/tst.print-f.r b/test/unittest/printf/tst.print-f.r
> deleted file mode 100644
> index 4d4b8641..00000000
> --- a/test/unittest/printf/tst.print-f.r
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -
> -%f = 0.000000
> -%f = 0.000000
> -
> diff --git a/test/unittest/printf/tst.printeE.d b/test/unittest/printf/tst.printeE.d
> deleted file mode 100644
> index 0127350f..00000000
> --- a/test/unittest/printf/tst.printeE.d
> +++ /dev/null
> @@ -1,34 +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.
> - */
> -/* @@xfail: dtv2 */
> -
> -/*
> - * ASSERTION:
> - *  Test %e, %E format printing.
> - *
> - * SECTION: Output Formatting/printf()
> - *
> - */
> -
> -#pragma D option quiet
> -
> -float f;
> -double d;
> -
> -BEGIN
> -{
> -	printf("\n");
> -
> -	printf("%%e = %e\n", f);
> -	printf("%%E = %E\n", f);
> -
> -	printf("%%e = %e\n", d);
> -	printf("%%E = %E\n", d);
> -
> -
> -	exit(0);
> -}
> diff --git a/test/unittest/printf/tst.printeE.r b/test/unittest/printf/tst.printeE.r
> deleted file mode 100644
> index 3fa96bc2..00000000
> --- a/test/unittest/printf/tst.printeE.r
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -
> -%e = 0.000000e+00
> -%E = 0.000000E+00
> -%e = 0.000000e+00
> -%E = 0.000000E+00
> -
> diff --git a/test/unittest/printf/tst.printgG.d b/test/unittest/printf/tst.printgG.d
> deleted file mode 100644
> index 6f4c29c2..00000000
> --- a/test/unittest/printf/tst.printgG.d
> +++ /dev/null
> @@ -1,34 +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.
> - */
> -/* @@xfail: dtv2 */
> -
> -/*
> - * ASSERTION:
> - *  Test %g, %G format printing.
> - *
> - * SECTION: Output Formatting/printf()
> - *
> - */
> -
> -#pragma D option quiet
> -
> -float f;
> -double d;
> -
> -BEGIN
> -{
> -	printf("\n");
> -
> -	printf("%%g = %g\n", f);
> -	printf("%%g = %g\n", d);
> -
> -	printf("%%G = %G\n", f);
> -	printf("%%G = %G\n", d);
> -
> -
> -	exit(0);
> -}
> diff --git a/test/unittest/printf/tst.printgG.r b/test/unittest/printf/tst.printgG.r
> deleted file mode 100644
> index e4175e64..00000000
> --- a/test/unittest/printf/tst.printgG.r
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -
> -%g = 0
> -%g = 0
> -%G = 0
> -%G = 0
> -
> -- 
> 2.26.0
> 
> 
> _______________________________________________
> 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