From: Eric S. Raymond Date: Sun, 14 Sep 2003 15:44:31 +0000 (+0000) Subject: We pass the regression test. X-Git-Tag: 1.6~27 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f8d8aa9471472ced1d0f00da97090245406547a4;p=comparator.git We pass the regression test. --- diff --git a/Makefile b/Makefile index 8a86655..028588c 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,8 @@ regress: else \ echo "Test $${n} from trees failed."; \ fi; \ - comparator -C -d test -c test$${n}-a >test$${n}-a.scf; \ - comparator -C -d test -c test$${n}-b >test$${n}-b.scf; \ + comparator -C -d test -c test$${n}-a >test$${n}-a.scf 2>/dev/null; \ + comparator -C -d test -c test$${n}-b >test$${n}-b.scf 2>/dev/null; \ comparator -C test$${n}-a.scf test$${n}-b.scf >test/out$${n}.log 2>/dev/null;\ rm test$${n}-a.scf test$${n}-b.scf; \ if diff -u test/out$${n}.good test/out$${n}.log; \ diff --git a/main.c b/main.c index d939b3d..2452b4a 100644 --- a/main.c +++ b/main.c @@ -92,6 +92,8 @@ void extend_current_chunk(void) { if (sort_count > 0) sort_buffer[sort_count-1].hash.end++; + if (chunk_count > 0) + chunk_buffer[chunk_count-1].end++; } static void write_options(char *buf)