diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-02-06 23:16:39 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-02-06 23:16:58 -0500 |
commit | 3fd6439f571a56771c6bbc21fa638cb94c929cc3 (patch) | |
tree | 1c5d5cdf501286e7a36c15c22df701c7f9246b46 /tests.sh | |
parent | eff9cbe83a6a4dad7338cf78ad3747d0d6628304 (diff) | |
download | bfs-3fd6439f571a56771c6bbc21fa638cb94c929cc3.tar.xz |
Fix a memory leak parsing -printf
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -852,9 +852,15 @@ function test_0140() { bfs_diff basic basic -quit -print } +function test_0141() { + # Memory leak regression test + [ "$GNU" ] || return 0 + bfs_diff basic -maxdepth 0 -printf '%p' +} + result=0 -for i in {1..140}; do +for i in {1..141}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then |