Skip to contentSkip to conversation

test: Fix tst.probestar.d trigger

PATCH In review [email protected] 2 participants 2 messages Oct 17, 2024 – Oct 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 19/22 test: Fix tst.probestar.d trigger

From: Eugene Loh <[email protected]>

This test was relying on a trigger that uses the obsolete dt_test, even though dt_test is irrelevant to the test.

Use a different trigger.

---
 test/unittest/probes/tst.probestar.d | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
test/unittest/probes/tst.probestar.d +2 -5
index dad7741e4..1f433d900 100644
@@ -1,11 +1,10 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2024, 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 */
-/* @@trigger: testprobe */
+/* @@trigger: readwholedir */
 
 /*
  * ASSERTION:
@@ -13,10 +12,8 @@
  * Call matching probe clauses with given name using "*"
  *
  * SECTION: Program Structure/Probe Clauses and Declarations
- *
  */
 
-
 #pragma D option quiet
 
 int i;
Signature · 1 line
2.43.5
Reviewed-by on v2 19/22
#1 lore raw
Quoted 8 lines · On Thu, Oct 17, 2024 at 07:00:05PM -0400, [email protected] wrote:

From: Eugene Loh <[email protected]>

This test was relying on a trigger that uses the obsolete dt_test, even though dt_test is irrelevant to the test.

Use a different trigger.

Quoted 36 lines
---
 test/unittest/probes/tst.probestar.d | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
test/unittest/probes/tst.probestar.d +2 -5
index dad7741e4..1f433d900 100644
@@ -1,11 +1,10 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2024, 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 */
-/* @@trigger: testprobe */
+/* @@trigger: readwholedir */
 
 /*
  * ASSERTION:
@@ -13,10 +12,8 @@
  * Call matching probe clauses with given name using "*"
  *
  * SECTION: Program Structure/Probe Clauses and Declarations
- *
  */
 
-
 #pragma D option quiet
 
 int i;
Signature · 1 line
2.43.5