src/tests/t.leakfind
raw| 1 | #! /bin/sh |
| 2 | |
| 3 | # This test deliberately leaks memory, and checks if we get output on |
| 4 | # stderr, to see if the leak checker sees something. |
| 5 | # If it does, we PASS the test. |
| 6 | # If it does not, we SKIP the test. |
| 7 | |
| 8 | # (C) Copyright 2005 Matthias Andree. GNU GPL v2 |
| 9 | |
| 10 | . ${srcdir:=.}/t.frame |
| 11 | |
| 12 | $VAL ./leakmem 2>&1 | egrep -v '^got |^ *(Electric Fence.*)?$' > "$TMPDIR"/out || exit 77 |