--- a/tests/boolean/boolean.sh
+++ b/tests/boolean/boolean.sh
@@ -5,10 +5,11 @@
 
 initvariables $0
 
-recollq 'boolean_uniqueterm One OR Two -Three' 2> $mystderr | 
-	egrep -v '^Recoll query: ' > $mystdout
+(
+recollq 'boolean_uniqueterm One OR Two -Three' 
 
-diff -w ${myname}.txt 2>> $mystderr | 
-	egrep -v '^Recoll query: ' >> $mystdout
+) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
+
+diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
 
 checkresult