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

Nick Alcock nick.alcock at oracle.com
Mon Mar 14 21:30:19 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.1.261.g8402f930ba.dirty




More information about the DTrace-devel mailing list