]> diplodocus.org Git - nmh/blobdiff - test/inc/test-eom-align
readline(3) wrapper: Move free(3) of line to where it's reachable.
[nmh] / test / inc / test-eom-align
index 8539b5d91acfebc899f04bb06023f4be3f5f7f88..5c81d74d4b43122387eb03da335d3731b11fa81c 100755 (executable)
@@ -95,6 +95,7 @@ makembox_B () {
 # Do a single test with message one's body of size sz.
 do_one_test_A () {
   SZ=$1
 # Do a single test with message one's body of size sz.
 do_one_test_A () {
   SZ=$1
+  printf '%5s A\r' $SZ
   makembox_A "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the messages should be 11 and 12 in inbox
   makembox_A "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the messages should be 11 and 12 in inbox
@@ -112,6 +113,7 @@ do_one_test_A () {
 # Do a test type B
 do_one_test_B () {
   SZ=$1
 # Do a test type B
 do_one_test_B () {
   SZ=$1
+  printf '%5s B\r' $SZ
   makembox_B "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the message should be 11 in the inbox
   makembox_B "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the message should be 11 in the inbox
@@ -128,9 +130,20 @@ arith_eval $STDIO_BUFSZ - 16; START=$arith_val
 arith_eval $STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32; FINISH=$arith_val
 [ -t 1 ]  &&  echo \
 "Testing inc of files with various alignments of eom marker with buffer size..."
 arith_eval $STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32; FINISH=$arith_val
 [ -t 1 ]  &&  echo \
 "Testing inc of files with various alignments of eom marker with buffer size..."
+
+#### Trouble spots for the particular input, with BUFSZ of 8192:
+for sz in 3146 3147 7241 7242 7243 11338 11339 15433 15434 15435; do
+  do_one_test_A $sz
+done
+
+# Also 155, 174, 175, but they're too small for makembox_B to handle.
+for sz in 684 4074 4097 4148 4610 4611 5121 5122 6654 6655 8170 \
+          8193 8244 8364 12266 12289 12340 16362 16385 16436; do
+  do_one_test_B $sz
+done
+
 i="$START"
 while test $i -le $FINISH; do
 i="$START"
 while test $i -le $FINISH; do
-  printf '  %s' $i
   do_one_test_A $i
   do_one_test_B $i
   i=`expr $i + 1`
   do_one_test_A $i
   do_one_test_B $i
   i=`expr $i + 1`