]> thyrsus.com Git - comparator.git/commitdiff
We pass the regression test.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 14 Sep 2003 15:44:31 +0000 (15:44 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 14 Sep 2003 15:44:31 +0000 (15:44 +0000)
Makefile
main.c

index 8a86655ad23ebed372cd6543670a587aedd20e85..028588c2087ea1d6fba45552cdcacff46b5ddda9 100644 (file)
--- 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 d939b3dd0ac7edfb2bc1834febef5633af313819..2452b4ae87f8873b78a459177a60759939b441fe 100644 (file)
--- 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)