git: bde22cf630ab - stable/14 - dtrace tests: Diff expected and actual output upon a miscompare

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 17 Jan 2024 16:51:12 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=bde22cf630aba34c65583291cd72ce0afad79ffc

commit bde22cf630aba34c65583291cd72ce0afad79ffc
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-01-10 21:38:30 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-01-17 16:50:57 +0000

    dtrace tests: Diff expected and actual output upon a miscompare
    
    This makes quick diagnosis of test failures easier.
    
    MFC after:      1 week
    
    (cherry picked from commit a61d2c7fbd3c87126db93dfe83b9f96fea3156f8)
---
 cddl/usr.sbin/dtrace/tests/tools/dtest.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cddl/usr.sbin/dtrace/tests/tools/dtest.sh b/cddl/usr.sbin/dtrace/tests/tools/dtest.sh
index 83f7a6c875da..d2f3dc4ed8df 100755
--- a/cddl/usr.sbin/dtrace/tests/tools/dtest.sh
+++ b/cddl/usr.sbin/dtrace/tests/tools/dtest.sh
@@ -119,6 +119,10 @@ test stdout:
 --
 $(cat $STDOUT)
 --
+test stdout diff:
+--
+$(diff -u $EXOUT $STDOUT)
+--
 __EOF__
     fi
     if [ $(stat -f '%z' $STDERR) -gt 0 ]; then