Skip to contentSkip to conversation

test: Clean up tst.specopen.d

PATCH In review [email protected] 2 participants 4 messages Oct 28, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 test: Clean up tst.specopen.d

From: Eugene Loh <[email protected]>

The test does not do much. Mostly, it is a speculation demo. It just needed some syntactical cleanup to pass.

---
 test/demo/spec/specopen.d | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
test/demo/spec/specopen.d +4 -7
index c510045b8..700bdd9ff 100644
@@ -7,10 +7,7 @@
  * http://oss.oracle.com/licenses/upl.
  */
 
-/* @@runtest-opts: $_pid */
-/* @@xfail: fbt provider not yet implemented; needs a trigger with failing open()s */
-
-syscall::open:entry,
+syscall::open:entry
 {
 	/*
 	 * The call to speculation() creates a new speculation.  If this fails,
@@ -38,7 +35,7 @@ fbt:::
 	speculate(self->spec);
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec/
 {
 	/*
@@ -51,7 +48,7 @@ syscall::open:return,
 	trace(errno);
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec && errno != 0/
 {
 	/*
@@ -61,7 +58,7 @@ syscall::open:return,
 	self->spec = 0;
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec && errno == 0/
 {
 	/*
Signature · 1 line
2.43.5
#1 lore raw

PATCH 2/2 test: Remove misformatted and incorrect @@xfail

From: Eugene Loh <[email protected]>

---
 test/unittest/begin/tst.begin-starvation.sh | 2 --
 1 file changed, 2 deletions(-)
test/unittest/begin/tst.begin-starvation.sh +0 -2
index f8e473bcd..b3aa59477 100755
@@ -5,8 +5,6 @@
 # Licensed under the Universal Permissive License v 1.0 as shown at
 # http://oss.oracle.com/licenses/upl.
 #
-# @@ xfail: BEGIN not yet forced to be processed first
-#
 
 #
 # This script tests that BEGIN in conjunction with a high-volume probe
Signature · 1 line
2.43.5
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] test: Remove misformatted and incorrect @@xfail

Quoted 3 lines · On Mon, Oct 28, 2024 at 02:33:34PM -0400, [email protected] wrote:

From: Eugene Loh <[email protected]>

Quoted 20 lines
---
 test/unittest/begin/tst.begin-starvation.sh | 2 --
 1 file changed, 2 deletions(-)
test/unittest/begin/tst.begin-starvation.sh +0 -2
index f8e473bcd..b3aa59477 100755
@@ -5,8 +5,6 @@
 # Licensed under the Universal Permissive License v 1.0 as shown at
 # http://oss.oracle.com/licenses/upl.
 #
-# @@ xfail: BEGIN not yet forced to be processed first
-#
 
 #
 # This script tests that BEGIN in conjunction with a high-volume probe
Signature · 1 line
2.43.5
Reviewed-by on v1 1/2
#3 lore raw
In reply to [email protected]
Quoted 6 lines · On Mon, Oct 28, 2024 at 02:33:33PM -0400, [email protected] wrote:

From: Eugene Loh <[email protected]>

The test does not do much. Mostly, it is a speculation demo. It just needed some syntactical cleanup to pass.

Quoted 50 lines
---
 test/demo/spec/specopen.d | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
test/demo/spec/specopen.d +4 -7
index c510045b8..700bdd9ff 100644
@@ -7,10 +7,7 @@
  * http://oss.oracle.com/licenses/upl.
  */
 
-/* @@runtest-opts: $_pid */
-/* @@xfail: fbt provider not yet implemented; needs a trigger with failing open()s */
-
-syscall::open:entry,
+syscall::open:entry
 {
 	/*
 	 * The call to speculation() creates a new speculation.  If this fails,
@@ -38,7 +35,7 @@ fbt:::
 	speculate(self->spec);
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec/
 {
 	/*
@@ -51,7 +48,7 @@ syscall::open:return,
 	trace(errno);
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec && errno != 0/
 {
 	/*
@@ -61,7 +58,7 @@ syscall::open:return,
 	self->spec = 0;
 }
 
-syscall::open:return,
+syscall::open:return
 /self->spec && errno == 0/
 {
 	/*
Signature · 1 line
2.43.5