diff options
author | Bryan Drewery <bryan@shatow.net> | 2018-03-05 01:56:23 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2018-03-05 01:56:23 +0300 |
commit | 7a015723e6be232d22aa4d32cd1d1906242affde (patch) | |
tree | 7a15dae7734d310f4ea62adc4b65c433414fc038 /test | |
parent | cfe8a013f182dd266f7308e8aa883a807bc465df (diff) |
mapfile tests: Add debugging for failure in Jenkins
Diffstat (limited to 'test')
-rw-r--r-- | test/mapfile.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/mapfile.sh b/test/mapfile.sh index 5db89a13..e413a9aa 100644 --- a/test/mapfile.sh +++ b/test/mapfile.sh @@ -212,6 +212,7 @@ fi jot 10 0 > "${TMP}" expectedfds=$(procstat -f $$|wc -l) + procstat -f $$ >&2 i=0 while mapfile_read_loop "${TMP}" n; do assert "$i" "$n" "value should match 1 $i" @@ -219,6 +220,8 @@ fi i=$((i + 1)) done fds=$(procstat -f $$|wc -l) + echo "-" >&2 + procstat -f $$ >&2 [ ${JAILED} -eq 0 ] && assert "${expectedfds}" "${fds}" "fd leak 1" } |