test_check_nofork.sh 527 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env sh
  2. . ./test_vars
  3. if [ $HAVE_FORK -eq 1 ]; then
  4. expected="Running suite(s): NoFork
  5. 0%: Checks: 1, Failures: 1, Errors: 0"
  6. else
  7. expected="Running suite(s): NoFork
  8. 0%: Checks: 1, Failures: 1, Errors: 0
  9. Running suite(s): NoForkSupport
  10. 100%: Checks: 1, Failures: 0, Errors: 0"
  11. fi
  12. actual=`./check_nofork${EXEEXT} | tr -d "\r"`
  13. if [ x"${expected}" = x"${actual}" ]; then
  14. exit 0
  15. else
  16. echo "Problem with check_nofork${EXEEXT}"
  17. echo "Expected: "
  18. echo "${expected}"
  19. echo "Got: "
  20. echo "${actual}"
  21. exit 1
  22. fi