test-0031.sh 378 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 31
  4. # ------------------------------- Test 31 ------------------------------------
  5. # Test mode in create option
  6. preptest test.log 31 1 0
  7. $RLR test-config.31 --force
  8. stat -c %f test.log|grep 8180 >/dev/null
  9. if [ $? != 0 ]; then
  10. echo "Bad mode of test.log, should be 0600"
  11. exit 3
  12. fi
  13. checkoutput <<EOF
  14. test.log 0
  15. test.log.1 0 zero
  16. EOF