Description: Don't suppress diff output in testsuite
 Some tests in the testsuite compare an output to a reference file and fail if
 they do not match. This comparison is done with diff, however some uses
 suppress the output of diff (by using the -q option or redirecting to
 /dev/null). That makes it hard to diagnose the test failure as the only visible
 information is that the output does not match.
 .
 This patch changes the diff calls to allow the output to be visible. Retrieved
 from upstream git, where it was added after the 2.0 release.
Author: Xiretza <xiretza@xiretza.xyz>
Origin: upstream, https://github.com/ghdl/ghdl/commit/a728cb60fb3c9b5df609e2e19c1b3d70b83e0784
Last-Update: 2022-12-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/testsuite/gna/issue394/testsuite.sh
+++ b/testsuite/gna/issue394/testsuite.sh
@@ -4,7 +4,7 @@
 
 analyze bug.vhdl
 elab_simulate bug > out.txt 2> err.txt
-diff_nocr -q out.txt out.ref
+diff_nocr out.txt out.ref
 
 rm -f out.txt err.txt
 clean
--- a/testsuite/gna/issue450/testsuite.sh
+++ b/testsuite/gna/issue450/testsuite.sh
@@ -12,7 +12,7 @@
   $GHDL --vpi-link -v gcc -o vpi2.vpi vpi2.o
 
   simulate disptree --vpi=./vpi2.vpi | tee disptree.out
-  diff_nocr -q disptree.ref disptree.out
+  diff_nocr disptree.ref disptree.out
 
   rm -f vpi2.o vpi2.vpi disptree.out
 fi
--- a/testsuite/gna/issue719/testsuite.sh
+++ b/testsuite/gna/issue719/testsuite.sh
@@ -3,7 +3,7 @@
 . ../../testenv.sh
 
 analyze tb.vhdl 2> tb.out
-diff_nocr -q tb.ref tb.out
+diff_nocr tb.ref tb.out
 
 rm -f tb.out
 clean
--- a/testsuite/gna/issue880/testsuite.sh
+++ b/testsuite/gna/issue880/testsuite.sh
@@ -8,7 +8,7 @@
 if ghdl_has_feature psl psl; then
   simulate psl --psl-report=psl.out
 
-  if ! diff_nocr psl.out psl.ref > /dev/null; then
+  if ! diff_nocr psl.out psl.ref; then
       echo "report mismatch"
       exit 1
   fi
@@ -24,7 +24,7 @@
 if ghdl_has_feature psl psl; then
   simulate psl --psl-report=psl.out
 
-  diff_nocr -q psl.out psl.ref
+  diff_nocr psl.out psl.ref
 
   rm -f psl.out
 fi
--- a/testsuite/gna/ticket24/testsuite.sh
+++ b/testsuite/gna/ticket24/testsuite.sh
@@ -8,7 +8,7 @@
 if ghdl_has_feature psl psl; then
   simulate psl --psl-report=psl.out
 
-  if ! diff_nocr psl.out psl.ref > /dev/null; then
+  if ! diff_nocr psl.out psl.ref; then
       echo "report mismatch"
       exit 1
   fi
@@ -24,7 +24,7 @@
 if ghdl_has_feature psl psl; then
   simulate psl --psl-report=psl.out
 
-  diff_nocr -q psl.out psl.ref
+  diff_nocr psl.out psl.ref
 
   rm -f psl.out
 fi
