[DTrace-devel] [PATCH 01/12] Add ERROR probe to bvar tests
Kris Van Hees
kris.van.hees at oracle.com
Thu Jun 3 08:43:05 PDT 2021
On Fri, May 28, 2021 at 02:35:05PM -0400, eugene.loh at oracle.com wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> A number of tested built-in variables are not yet supported. So
> their respective tests are marked XFAIL. This is satisfactory, but
> a number of those variables currently cause DTrace errors, causing
> their tests to hang (time out). This costs unnecessary test time.
>
> When support for the ERROR probe (patch "ERROR probe implementation")
> was introduced, the test/unittest/builtinvar/tst.*.d tests were
> augmented with ERROR probes to catch errors and result in faster
> failures.
>
> Add similar ERROR probes to test/unittest/variables/bvar/tst.*.d
> for the same reason.
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> test/unittest/variables/bvar/tst.arg0.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg1.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg2.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg3.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg4.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg5.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg6.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg7.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg8.d | 6 +++++-
> test/unittest/variables/bvar/tst.arg9.d | 6 +++++-
> test/unittest/variables/bvar/tst.args.d | 6 +++++-
> test/unittest/variables/bvar/tst.caller.d | 6 +++++-
> test/unittest/variables/bvar/tst.curcpu.d | 6 +++++-
> test/unittest/variables/bvar/tst.curthread.d | 6 +++++-
> test/unittest/variables/bvar/tst.epid.d | 6 +++++-
> test/unittest/variables/bvar/tst.errno.d | 6 +++++-
> test/unittest/variables/bvar/tst.execname.d | 6 +++++-
> test/unittest/variables/bvar/tst.gid.d | 6 +++++-
> test/unittest/variables/bvar/tst.id.d | 6 +++++-
> test/unittest/variables/bvar/tst.ipl.d | 6 +++++-
> test/unittest/variables/bvar/tst.pid.d | 6 +++++-
> test/unittest/variables/bvar/tst.ppid.d | 6 +++++-
> test/unittest/variables/bvar/tst.ppid2.d | 6 +++++-
> test/unittest/variables/bvar/tst.probefunc.d | 6 +++++-
> test/unittest/variables/bvar/tst.probemod.d | 6 +++++-
> test/unittest/variables/bvar/tst.probename.d | 6 +++++-
> test/unittest/variables/bvar/tst.probeprov.d | 6 +++++-
> test/unittest/variables/bvar/tst.stackdepth.d | 6 +++++-
> test/unittest/variables/bvar/tst.tid.d | 6 +++++-
> test/unittest/variables/bvar/tst.timestamp-bug31632630.d | 6 +++++-
> test/unittest/variables/bvar/tst.timestamp.d | 6 +++++-
> test/unittest/variables/bvar/tst.ucaller.d | 6 +++++-
> test/unittest/variables/bvar/tst.uid.d | 6 +++++-
> test/unittest/variables/bvar/tst.uregs.d | 6 +++++-
> test/unittest/variables/bvar/tst.ustackdepth.d | 6 +++++-
> test/unittest/variables/bvar/tst.vtimestamp.d | 6 +++++-
> test/unittest/variables/bvar/tst.walltimestamp.d | 6 +++++-
> 37 files changed, 185 insertions(+), 37 deletions(-)
>
> diff --git a/test/unittest/variables/bvar/tst.arg0.d b/test/unittest/variables/bvar/tst.arg0.d
> index 54ced256..a745db0d 100644
> --- a/test/unittest/variables/bvar/tst.arg0.d
> +++ b/test/unittest/variables/bvar/tst.arg0.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg0);
> exit(arg0 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg1.d b/test/unittest/variables/bvar/tst.arg1.d
> index d9e97097..7d2cd65a 100644
> --- a/test/unittest/variables/bvar/tst.arg1.d
> +++ b/test/unittest/variables/bvar/tst.arg1.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg1);
> exit(arg1 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg2.d b/test/unittest/variables/bvar/tst.arg2.d
> index f7544e3f..08cf98aa 100644
> --- a/test/unittest/variables/bvar/tst.arg2.d
> +++ b/test/unittest/variables/bvar/tst.arg2.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg2);
> exit(arg2 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg3.d b/test/unittest/variables/bvar/tst.arg3.d
> index 6dfd7ee3..a7eea667 100644
> --- a/test/unittest/variables/bvar/tst.arg3.d
> +++ b/test/unittest/variables/bvar/tst.arg3.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg3);
> exit(arg3 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg4.d b/test/unittest/variables/bvar/tst.arg4.d
> index f82d18f4..defc09ce 100644
> --- a/test/unittest/variables/bvar/tst.arg4.d
> +++ b/test/unittest/variables/bvar/tst.arg4.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg4);
> exit(arg4 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg5.d b/test/unittest/variables/bvar/tst.arg5.d
> index 0ca70cb5..48ae3f12 100644
> --- a/test/unittest/variables/bvar/tst.arg5.d
> +++ b/test/unittest/variables/bvar/tst.arg5.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg5);
> exit(arg5 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg6.d b/test/unittest/variables/bvar/tst.arg6.d
> index 4bda34c2..cd77dff3 100644
> --- a/test/unittest/variables/bvar/tst.arg6.d
> +++ b/test/unittest/variables/bvar/tst.arg6.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg6);
> exit(arg6 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg7.d b/test/unittest/variables/bvar/tst.arg7.d
> index 0b919617..314fdb1f 100644
> --- a/test/unittest/variables/bvar/tst.arg7.d
> +++ b/test/unittest/variables/bvar/tst.arg7.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg7);
> exit(arg7 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg8.d b/test/unittest/variables/bvar/tst.arg8.d
> index 8ed51ccc..dc03db3b 100644
> --- a/test/unittest/variables/bvar/tst.arg8.d
> +++ b/test/unittest/variables/bvar/tst.arg8.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg8);
> exit(arg8 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.arg9.d b/test/unittest/variables/bvar/tst.arg9.d
> index f2e1258a..4456bba0 100644
> --- a/test/unittest/variables/bvar/tst.arg9.d
> +++ b/test/unittest/variables/bvar/tst.arg9.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(arg9);
> exit(arg9 != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.args.d b/test/unittest/variables/bvar/tst.args.d
> index 20820563..09536766 100644
> --- a/test/unittest/variables/bvar/tst.args.d
> +++ b/test/unittest/variables/bvar/tst.args.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(args);
> exit(args != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.caller.d b/test/unittest/variables/bvar/tst.caller.d
> index d4717dd4..a2476a24 100644
> --- a/test/unittest/variables/bvar/tst.caller.d
> +++ b/test/unittest/variables/bvar/tst.caller.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(caller);
> exit(caller != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.curcpu.d b/test/unittest/variables/bvar/tst.curcpu.d
> index e0e266ff..04169997 100644
> --- a/test/unittest/variables/bvar/tst.curcpu.d
> +++ b/test/unittest/variables/bvar/tst.curcpu.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(curcpu);
> exit((int64_t)curcpu != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.curthread.d b/test/unittest/variables/bvar/tst.curthread.d
> index bfda83f3..5f17f81d 100644
> --- a/test/unittest/variables/bvar/tst.curthread.d
> +++ b/test/unittest/variables/bvar/tst.curthread.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(curthread);
> exit((int64_t)curthread != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.epid.d b/test/unittest/variables/bvar/tst.epid.d
> index d3212732..0c6e01c7 100644
> --- a/test/unittest/variables/bvar/tst.epid.d
> +++ b/test/unittest/variables/bvar/tst.epid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(epid);
> exit(epid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.errno.d b/test/unittest/variables/bvar/tst.errno.d
> index f7a08071..c932f21c 100644
> --- a/test/unittest/variables/bvar/tst.errno.d
> +++ b/test/unittest/variables/bvar/tst.errno.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(errno);
> exit(errno != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.execname.d b/test/unittest/variables/bvar/tst.execname.d
> index 4852c073..8bb89b54 100644
> --- a/test/unittest/variables/bvar/tst.execname.d
> +++ b/test/unittest/variables/bvar/tst.execname.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(execname);
> exit(execname != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.gid.d b/test/unittest/variables/bvar/tst.gid.d
> index d718bc39..4740f5e6 100644
> --- a/test/unittest/variables/bvar/tst.gid.d
> +++ b/test/unittest/variables/bvar/tst.gid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(gid);
> exit(gid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.id.d b/test/unittest/variables/bvar/tst.id.d
> index bce507c9..e380d224 100644
> --- a/test/unittest/variables/bvar/tst.id.d
> +++ b/test/unittest/variables/bvar/tst.id.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(id);
> exit(id != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.ipl.d b/test/unittest/variables/bvar/tst.ipl.d
> index 417f464b..a61e3b5b 100644
> --- a/test/unittest/variables/bvar/tst.ipl.d
> +++ b/test/unittest/variables/bvar/tst.ipl.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(ipl);
> exit(ipl != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.pid.d b/test/unittest/variables/bvar/tst.pid.d
> index 4161b6f6..cc16ebd7 100644
> --- a/test/unittest/variables/bvar/tst.pid.d
> +++ b/test/unittest/variables/bvar/tst.pid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(pid);
> exit(pid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.ppid.d b/test/unittest/variables/bvar/tst.ppid.d
> index 87bc52da..c0ddb0c5 100644
> --- a/test/unittest/variables/bvar/tst.ppid.d
> +++ b/test/unittest/variables/bvar/tst.ppid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(ppid);
> exit(ppid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.ppid2.d b/test/unittest/variables/bvar/tst.ppid2.d
> index 7a50ac89..4a4a616f 100644
> --- a/test/unittest/variables/bvar/tst.ppid2.d
> +++ b/test/unittest/variables/bvar/tst.ppid2.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace($ppid);
> exit(ppid == $ppid ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.probefunc.d b/test/unittest/variables/bvar/tst.probefunc.d
> index b6c1b5ab..45839b29 100644
> --- a/test/unittest/variables/bvar/tst.probefunc.d
> +++ b/test/unittest/variables/bvar/tst.probefunc.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(probefunc);
> exit(probefunc != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.probemod.d b/test/unittest/variables/bvar/tst.probemod.d
> index d7146b45..a114e434 100644
> --- a/test/unittest/variables/bvar/tst.probemod.d
> +++ b/test/unittest/variables/bvar/tst.probemod.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(probemod);
> exit(probemod != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.probename.d b/test/unittest/variables/bvar/tst.probename.d
> index c29cd2ee..e379765e 100644
> --- a/test/unittest/variables/bvar/tst.probename.d
> +++ b/test/unittest/variables/bvar/tst.probename.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(probename);
> exit(probename != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.probeprov.d b/test/unittest/variables/bvar/tst.probeprov.d
> index 1527dc9e..7f979104 100644
> --- a/test/unittest/variables/bvar/tst.probeprov.d
> +++ b/test/unittest/variables/bvar/tst.probeprov.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(probeprov);
> exit(probeprov != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.stackdepth.d b/test/unittest/variables/bvar/tst.stackdepth.d
> index 039f9778..ad728fd8 100644
> --- a/test/unittest/variables/bvar/tst.stackdepth.d
> +++ b/test/unittest/variables/bvar/tst.stackdepth.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(stackdepth);
> exit(stackdepth != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.tid.d b/test/unittest/variables/bvar/tst.tid.d
> index 0bf63f81..8fe6bcf6 100644
> --- a/test/unittest/variables/bvar/tst.tid.d
> +++ b/test/unittest/variables/bvar/tst.tid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(tid);
> exit(tid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.timestamp-bug31632630.d b/test/unittest/variables/bvar/tst.timestamp-bug31632630.d
> index 7e02dc7e..ac48bb36 100644
> --- a/test/unittest/variables/bvar/tst.timestamp-bug31632630.d
> +++ b/test/unittest/variables/bvar/tst.timestamp-bug31632630.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2006, 2021, 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.
> */
> @@ -21,3 +21,7 @@ BEGIN
> trace(this->b - this->a);
> exit(this->a == this->b ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.timestamp.d b/test/unittest/variables/bvar/tst.timestamp.d
> index b8d27f5d..3992b70f 100644
> --- a/test/unittest/variables/bvar/tst.timestamp.d
> +++ b/test/unittest/variables/bvar/tst.timestamp.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(timestamp);
> exit(timestamp != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.ucaller.d b/test/unittest/variables/bvar/tst.ucaller.d
> index ca2c9229..930f10e8 100644
> --- a/test/unittest/variables/bvar/tst.ucaller.d
> +++ b/test/unittest/variables/bvar/tst.ucaller.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(ucaller);
> exit(ucaller != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.uid.d b/test/unittest/variables/bvar/tst.uid.d
> index 532967d3..f1450c97 100644
> --- a/test/unittest/variables/bvar/tst.uid.d
> +++ b/test/unittest/variables/bvar/tst.uid.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -17,3 +17,7 @@ BEGIN {
> trace(uid);
> exit(uid != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.uregs.d b/test/unittest/variables/bvar/tst.uregs.d
> index dc253c53..5e0d507e 100644
> --- a/test/unittest/variables/bvar/tst.uregs.d
> +++ b/test/unittest/variables/bvar/tst.uregs.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(uregs);
> exit(uregs != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.ustackdepth.d b/test/unittest/variables/bvar/tst.ustackdepth.d
> index 85b5604f..9c1e2d7a 100644
> --- a/test/unittest/variables/bvar/tst.ustackdepth.d
> +++ b/test/unittest/variables/bvar/tst.ustackdepth.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(ustackdepth);
> exit(ustackdepth != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.vtimestamp.d b/test/unittest/variables/bvar/tst.vtimestamp.d
> index 86cf5d19..dc985ad1 100644
> --- a/test/unittest/variables/bvar/tst.vtimestamp.d
> +++ b/test/unittest/variables/bvar/tst.vtimestamp.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(vtimestamp);
> exit(vtimestamp != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> diff --git a/test/unittest/variables/bvar/tst.walltimestamp.d b/test/unittest/variables/bvar/tst.walltimestamp.d
> index 9e3291c4..4797287d 100644
> --- a/test/unittest/variables/bvar/tst.walltimestamp.d
> +++ b/test/unittest/variables/bvar/tst.walltimestamp.d
> @@ -1,6 +1,6 @@
> /*
> * Oracle Linux DTrace.
> - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2020, 2021, 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.
> */
> @@ -18,3 +18,7 @@ BEGIN {
> trace(walltimestamp);
> exit(walltimestamp != -1 ? 0 : 1);
> }
> +
> +ERROR {
> + exit(1);
> +}
> --
> 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