[DTrace-devel] [PATCH v3 2/4] test: correct file permissions

Kris Van Hees kris.van.hees at oracle.com
Wed Jan 7 16:28:47 UTC 2026


Various tests had a #!-invocation while still being expected to be used
as scripts fed to dtrace.  Removed the #!-lines and marked the files
non-executable.

Various tests that were meant to be invoked as standaline scripts had an
absoolute path to dtrace in the #!-invocation which was not recognized.
runtest.sh expects standalone D scripts to use '#!dtrace' so that the
correct path to the dtrace executable being tested can be inserted.
Corrected the tests, and ensured they are executable.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 test/demo/script/interp.d                                   | 4 ++--
 test/demo/script/tracewrite.d                               | 6 +++---
 test/demo/spec/specopen.d                                   | 6 +++---
 test/stress/fbtsafety/tst.vahole.d                          | 4 ++--
 test/unittest/lockstat/tst.lockstat-summary.d               | 0
 test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d     | 4 ++--
 test/unittest/scripting/err.D_OP_LVAL.rdonly.d              | 4 ++--
 test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d        | 4 ++--
 test/unittest/scripting/err.D_SYNTAX.concat.d               | 4 ++--
 test/unittest/scripting/err.D_SYNTAX.desc.d                 | 4 ++--
 test/unittest/scripting/err.D_SYNTAX.inval.d                | 4 ++--
 test/unittest/scripting/err.D_SYNTAX.pid.d                  | 4 ++--
 test/unittest/scripting/tst.arg0.d                          | 4 ++--
 test/unittest/scripting/tst.assign.d                        | 4 ++--
 test/unittest/scripting/tst.basic.d                         | 4 ++--
 test/unittest/scripting/tst.pgid.d                          | 4 ++--
 test/unittest/scripting/tst.pid.d                           | 4 ++--
 test/unittest/scripting/tst.quiet.d                         | 0
 test/unittest/scripting/tst.sid.d                           | 4 ++--
 test/unittest/scripting/tst.trace.d                         | 4 ++--
 .../speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d    | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.r    | 2 +-
 .../speculation/err.D_ACT_SPEC.SpeculateWithChill.d         | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithChill.r         | 2 +-
 .../speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d       | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.r       | 2 +-
 .../speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d    | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.r    | 2 +-
 .../speculation/err.D_ACT_SPEC.SpeculateWithPanic.d         | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithPanic.r         | 2 +-
 .../speculation/err.D_ACT_SPEC.SpeculateWithRaise.d         | 5 ++---
 .../speculation/err.D_ACT_SPEC.SpeculateWithRaise.r         | 2 +-
 .../unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d | 5 ++---
 .../unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.r | 2 +-
 34 files changed, 59 insertions(+), 66 deletions(-)
 mode change 100644 => 100755 test/demo/script/interp.d
 mode change 100644 => 100755 test/demo/script/tracewrite.d
 mode change 100644 => 100755 test/stress/fbtsafety/tst.vahole.d
 mode change 100755 => 100644 test/unittest/lockstat/tst.lockstat-summary.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_OP_LVAL.rdonly.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_SYNTAX.concat.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_SYNTAX.desc.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_SYNTAX.inval.d
 mode change 100644 => 100755 test/unittest/scripting/err.D_SYNTAX.pid.d
 mode change 100644 => 100755 test/unittest/scripting/tst.arg0.d
 mode change 100644 => 100755 test/unittest/scripting/tst.assign.d
 mode change 100644 => 100755 test/unittest/scripting/tst.basic.d
 mode change 100644 => 100755 test/unittest/scripting/tst.pgid.d
 mode change 100644 => 100755 test/unittest/scripting/tst.pid.d
 mode change 100644 => 100755 test/unittest/scripting/tst.quiet.d
 mode change 100644 => 100755 test/unittest/scripting/tst.sid.d
 mode change 100644 => 100755 test/unittest/scripting/tst.trace.d

diff --git a/test/demo/script/interp.d b/test/demo/script/interp.d
old mode 100644
new mode 100755
index be690b56..fba39e41
--- a/test/demo/script/interp.d
+++ b/test/demo/script/interp.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2026, 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.
  */
diff --git a/test/demo/script/tracewrite.d b/test/demo/script/tracewrite.d
old mode 100644
new mode 100755
index 0c139ead..f888ecd8
--- a/test/demo/script/tracewrite.d
+++ b/test/demo/script/tracewrite.d
@@ -1,13 +1,13 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2026, 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.
  */
 
-/* @@trigger: readwholedir */
+/* @@runtest-opts: -c test/triggers/readwholedir */
 
 syscall::write:entry
 /pid == $target/
diff --git a/test/demo/spec/specopen.d b/test/demo/spec/specopen.d
index e7dbc3b2..b3769789 100644
--- a/test/demo/spec/specopen.d
+++ b/test/demo/spec/specopen.d
@@ -1,12 +1,12 @@
-#!/usr/sbin/dtrace -Fs
-
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2026, 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.
  */
 
+#pragma D option flowindent
+
 syscall::openat:entry
 {
 	/*
diff --git a/test/stress/fbtsafety/tst.vahole.d b/test/stress/fbtsafety/tst.vahole.d
old mode 100644
new mode 100755
index b918e663..732ae3ca
--- a/test/stress/fbtsafety/tst.vahole.d
+++ b/test/stress/fbtsafety/tst.vahole.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -Cs
+#!dtrace -Cs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/lockstat/tst.lockstat-summary.d b/test/unittest/lockstat/tst.lockstat-summary.d
old mode 100755
new mode 100644
diff --git a/test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d b/test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d
old mode 100644
new mode 100755
index 45c37efe..6fcb4d54
--- a/test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d
+++ b/test/unittest/scripting/err.D_MACRO_UNDEF.invalidargs.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_OP_LVAL.rdonly.d b/test/unittest/scripting/err.D_OP_LVAL.rdonly.d
old mode 100644
new mode 100755
index b51e1160..866a7f32
--- a/test/unittest/scripting/err.D_OP_LVAL.rdonly.d
+++ b/test/unittest/scripting/err.D_OP_LVAL.rdonly.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d b/test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d
old mode 100644
new mode 100755
index a4880cca..9a9d1566
--- a/test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d
+++ b/test/unittest/scripting/err.D_OP_WRITE.usepidmacro.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_SYNTAX.concat.d b/test/unittest/scripting/err.D_SYNTAX.concat.d
old mode 100644
new mode 100755
index 8f7b210f..8d6e5f64
--- a/test/unittest/scripting/err.D_SYNTAX.concat.d
+++ b/test/unittest/scripting/err.D_SYNTAX.concat.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_SYNTAX.desc.d b/test/unittest/scripting/err.D_SYNTAX.desc.d
old mode 100644
new mode 100755
index 34ae864c..e8ec7851
--- a/test/unittest/scripting/err.D_SYNTAX.desc.d
+++ b/test/unittest/scripting/err.D_SYNTAX.desc.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_SYNTAX.inval.d b/test/unittest/scripting/err.D_SYNTAX.inval.d
old mode 100644
new mode 100755
index d3338cfd..d2ae68a6
--- a/test/unittest/scripting/err.D_SYNTAX.inval.d
+++ b/test/unittest/scripting/err.D_SYNTAX.inval.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/err.D_SYNTAX.pid.d b/test/unittest/scripting/err.D_SYNTAX.pid.d
old mode 100644
new mode 100755
index 01044d6e..1f383dd7
--- a/test/unittest/scripting/err.D_SYNTAX.pid.d
+++ b/test/unittest/scripting/err.D_SYNTAX.pid.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.arg0.d b/test/unittest/scripting/tst.arg0.d
old mode 100644
new mode 100755
index 905fefb6..d2aa4345
--- a/test/unittest/scripting/tst.arg0.d
+++ b/test/unittest/scripting/tst.arg0.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.assign.d b/test/unittest/scripting/tst.assign.d
old mode 100644
new mode 100755
index 9bbd8e49..cde5d64c
--- a/test/unittest/scripting/tst.assign.d
+++ b/test/unittest/scripting/tst.assign.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.basic.d b/test/unittest/scripting/tst.basic.d
old mode 100644
new mode 100755
index cd7b716a..792d6f06
--- a/test/unittest/scripting/tst.basic.d
+++ b/test/unittest/scripting/tst.basic.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.pgid.d b/test/unittest/scripting/tst.pgid.d
old mode 100644
new mode 100755
index 8d82f2bd..44ce7515
--- a/test/unittest/scripting/tst.pgid.d
+++ b/test/unittest/scripting/tst.pgid.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.pid.d b/test/unittest/scripting/tst.pid.d
old mode 100644
new mode 100755
index 2d0499d7..70197c86
--- a/test/unittest/scripting/tst.pid.d
+++ b/test/unittest/scripting/tst.pid.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -qs
+#!dtrace -qs
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.quiet.d b/test/unittest/scripting/tst.quiet.d
old mode 100644
new mode 100755
diff --git a/test/unittest/scripting/tst.sid.d b/test/unittest/scripting/tst.sid.d
old mode 100644
new mode 100755
index e4f1395c..670761d8
--- a/test/unittest/scripting/tst.sid.d
+++ b/test/unittest/scripting/tst.sid.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/scripting/tst.trace.d b/test/unittest/scripting/tst.trace.d
old mode 100644
new mode 100755
index 148e5c60..f52b14ef
--- a/test/unittest/scripting/tst.trace.d
+++ b/test/unittest/scripting/tst.trace.d
@@ -1,8 +1,8 @@
-#!/usr/sbin/dtrace -s
+#!dtrace -s
 
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d
index 50bbf177..044b5a95 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 BEGIN
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.r
index 1590807c..206641c0 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d: [D_ACT_SPEC] line 28: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d: [D_ACT_SPEC] line 27: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d
index 47e248d2..e02577d2 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace (1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 BEGIN
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.r
index d01ab558..ab7c6ed9 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d: [D_ACT_SPEC] line 28: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithChill.d: [D_ACT_SPEC] line 27: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d
index 14cc1d5c..dbb8f294 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 char a[2];
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.r
index 89592786..f57aba47 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d: [D_ACT_SPEC] line 34: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d: [D_ACT_SPEC] line 33: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d
index 43a41440..00f56e1d 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 string str;
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.r
index 3bc21b18..da4038aa 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d: [D_ACT_SPEC] line 34: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d: [D_ACT_SPEC] line 33: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d
index 80a3204d..9fb6a1e3 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 BEGIN
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.r
index 3c120a03..7c15314d 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d: [D_ACT_SPEC] line 28: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d: [D_ACT_SPEC] line 27: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d
index a8c1c4d4..c239bc7a 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 BEGIN
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.r
index 136f5cde..6e85370a 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d: [D_ACT_SPEC] line 28: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d: [D_ACT_SPEC] line 27: destructive actions may not follow speculate( )
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d
index a0bca73d..dd20eac4 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d
@@ -1,7 +1,6 @@
-#!/usr/sbin/dtrace -ws
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2026, 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.
  */
@@ -10,8 +9,8 @@
  * ASSERTION: Destructive actions may never be speculative.
  *
  * SECTION: Speculative Tracing/Using a Speculation
- * SECTION: dtrace(1M) Utility/ -w option
  */
+#pragma D option destructive
 #pragma D option quiet
 
 BEGIN
diff --git a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.r b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.r
index 8cdc6ba1..98725509 100644
--- a/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.r
+++ b/test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.r
@@ -1,2 +1,2 @@
 -- @@stderr --
-dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d: [D_ACT_SPEC] line 28: destructive actions may not follow speculate( )
+dtrace: failed to compile script test/unittest/speculation/err.D_ACT_SPEC.SpeculateWithStop.d: [D_ACT_SPEC] line 27: destructive actions may not follow speculate( )
-- 
2.51.0




More information about the DTrace-devel mailing list