[DTrace-devel] [PATCH] test: Remove duplicated check
eugene.loh at oracle.com
eugene.loh at oracle.com
Mon Nov 4 19:23:54 UTC 2024
From: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
test/unittest/usdt/tst.pidprobes.sh | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/test/unittest/usdt/tst.pidprobes.sh b/test/unittest/usdt/tst.pidprobes.sh
index 8d18c89a4..25fee8553 100755
--- a/test/unittest/usdt/tst.pidprobes.sh
+++ b/test/unittest/usdt/tst.pidprobes.sh
@@ -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 ===
--
2.43.5
More information about the DTrace-devel
mailing list