Skip to contentSkip to conversation

test: Remove duplicated check

PATCH In review [email protected] 2 participants 2 messages Nov 4, 2024 – Nov 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Remove duplicated check

From: 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
index 8d18c89a4..25fee8553 100755
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Mon, Nov 04, 2024 at 02:23:54PM -0500, [email protected] wrote:

From: Eugene Loh <[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
index 8d18c89a4..25fee8553 100755
@@ -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