t / t0005-signals.shon commit pager: do wait_for_pager on signal death (a3da882)
   1#!/bin/sh
   2
   3test_description='signals work as we expect'
   4. ./test-lib.sh
   5
   6cat >expect <<EOF
   7three
   8two
   9one
  10EOF
  11
  12test_expect_success 'sigchain works' '
  13        test-sigchain >actual
  14        case "$?" in
  15        130) true ;; # POSIX w/ SIGINT=2
  16          3) true ;; # Windows
  17          *) false ;;
  18        esac &&
  19        test_cmp expect actual
  20'
  21
  22test_done