test: Remove duplicated check
PATCH 1/1 test: Remove duplicated check
From: Eugene Loh <[email protected]>
Signed-off-by Eugene Loh <[email protected]>
--- test/unittest/usdt/tst.pidprobes.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
test/unittest/usdt/tst.pidprobes.sh +1 -10
@@ -99,15 +99,6 @@ if [ $? -ne 0 ]; then cat dtrace.out exit 1 fi -echo "my result: 10" > main.out2.expected -if ! diff -q main.out2 main.out2.expected > /dev/null; then - echo '"my result"' looks wrong when using DTrace - echo === got === - cat main.out2 - echo === expected === - cat main.out2.expected - exit 1 -fi # Check that the program output is 10 when the USDT probe is enabled. # That is, the PYRAMID_ENTRY_ENABLED() is-enabled checks should pass.
@@ -115,7 +106,7 @@ fi echo "my result: 10" > main.out2.expected if ! diff -q main.out2 main.out2.expected > /dev/null; then - echo '"my result"' looks wrong + echo '"my result"' looks wrong when using DTrace echo === got === cat main.out2 echo === expected ===
Signature · 1 line
2.43.5
Quoted 3 lines · On Mon, Nov 04, 2024 at 02:23:54PM -0500, [email protected] wrote:
From: Eugene Loh <[email protected]>
Signed-off-by Eugene Loh <[email protected]>
Reviewed-by Kris Van Hees <[email protected]>
Quoted 36 lines
--- test/unittest/usdt/tst.pidprobes.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)test/unittest/usdt/tst.pidprobes.sh +1
-10@@ -99,15 +99,6 @@ if [ $? -ne 0 ]; then cat dtrace.out exit 1 fi -echo "my result: 10" > main.out2.expected -if ! diff -q main.out2 main.out2.expected > /dev/null; then - echo '"my result"' looks wrong when using DTrace - echo === got === - cat main.out2 - echo === expected === - cat main.out2.expected - exit 1 -fi # Check that the program output is 10 when the USDT probe is enabled. # That is, the PYRAMID_ENTRY_ENABLED() is-enabled checks should pass.@@ -115,7 +106,7 @@ fi echo "my result: 10" > main.out2.expected if ! diff -q main.out2 main.out2.expected > /dev/null; then - echo '"my result"' looks wrong + echo '"my result"' looks wrong when using DTrace echo === got === cat main.out2 echo === expected ===Signature · 1 line
2.43.5