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

Nick Alcock nick.alcock at oracle.com
Wed May 11 21:12:51 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 1495285dd29d..41a1335b66b7 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -507,7 +507,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.36.1.263.g194b774378.dirty




More information about the DTrace-devel mailing list