test: Clean up tst.specopen.d
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.
Signed-off-by Eugene Loh <[email protected]>
--- test/demo/spec/specopen.d | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
test/demo/spec/specopen.d +4 -7
@@ -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
PATCH 2/2 test: Remove misformatted and incorrect @@xfail
From: Eugene Loh <[email protected]>
Signed-off-by 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
@@ -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
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]>
Signed-off-by Eugene Loh <[email protected]>
Reviewed-by Kris Van Hees <[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@@ -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 probeSignature · 1 line
2.43.5
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.
Signed-off-by Eugene Loh <[email protected]>
Reviewed-by Kris Van Hees <[email protected]>
Quoted 50 lines
--- test/demo/spec/specopen.d | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)test/demo/spec/specopen.d +4
-7@@ -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