[DTrace-devel] [PATCH 11/14] tests: always check expected results as text, not binary

Nick Alcock nick.alcock at oracle.com
Wed Mar 2 13:45:04 UTC 2022


Even if we get \0 in results, we want to see the output, not helpful
"binary files differ" messages.

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
---
 runtest.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtest.sh b/runtest.sh
index 62f2ce38fe84..1c12e9bbbe83 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -506,7 +506,7 @@ resultslog()
         elif [[ -n $want_expected_diff ]]; then
             log "Diff against expected:\n"
 
-            diff -u $rfile $tmpdir/test.out | tee -a $LOGFILE >> $SUMFILE
+            diff -au $rfile $tmpdir/test.out | tee -a $LOGFILE >> $SUMFILE
         fi
     fi
 
-- 
2.35.0.260.gb82b153193.dirty




More information about the DTrace-devel mailing list