Skip to contentSkip to conversation

test: Add trigger for more predictable run time

PATCH In review [email protected] 2 participants 2 messages Sep 16, 2025 – Sep 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Add trigger for more predictable run time

From: Eugene Loh <[email protected]>

The test had no trigger and so waited haphazardly for the write:entry probe to fire. This typically worked, but led to variable run times and even, though rarely, a test timeout and failure.

Add a trigger for more reproducible and typically shorter run times.

---
 test/unittest/error/tst.argv-corruption-by-error.d | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
test/unittest/error/tst.argv-corruption-by-error.d +2 -1
index 6fd1834e1..1fdd89858 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2024, 2025, 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.
  */
@@ -13,6 +13,7 @@
  *
  * SECTION: dtrace Provider
  */
+/* @@trigger: periodic_output */
 
 #pragma D option quiet
 
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Tue, Sep 16, 2025 at 06:55:06PM -0400, [email protected] wrote:

From: Eugene Loh <[email protected]>

The test had no trigger and so waited haphazardly for the write:entry probe to fire. This typically worked, but led to variable run times and even, though rarely, a test timeout and failure.

Add a trigger for more reproducible and typically shorter run times.

Quoted 27 lines
---
 test/unittest/error/tst.argv-corruption-by-error.d | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
test/unittest/error/tst.argv-corruption-by-error.d +2 -1
index 6fd1834e1..1fdd89858 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2024, 2025, 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.
  */
@@ -13,6 +13,7 @@
  *
  * SECTION: dtrace Provider
  */
+/* @@trigger: periodic_output */
 
 #pragma D option quiet
 
Signature · 1 line
2.47.3