test-0025.sh 545 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 25
  4. # ------------------------------- Test 25 ------------------------------------
  5. # If there is no '{' character after log files definition, error should be printed
  6. # and config file should be skipped
  7. preptest test.log 25 1 0
  8. # log with 1 byte should not be rotated
  9. $RLR test-config.25 2>error.log
  10. grep "missing '{' after log files definition" error.log >/dev/null
  11. if [ $? != 0 ]; then
  12. echo "No error printed, but there should be one."
  13. exit 3
  14. fi
  15. rm error.log
  16. checkoutput <<EOF
  17. test.log 0 zero
  18. EOF