Sign in
fuchsia
/
third_party
/
swift-corelibs-libdispatch
/
6217b0f1eeffdc8e89dfe725c195485772fa45a2
/
.
/
tests
/
leaks-wrapper.sh
blob: 05f9d6987d1af51dc7a93c5bddebf5d7b321a16d [
file
] [
log
] [
blame
]
#!/bin/sh
/
usr
/
bin
/
leaks
"$@"
2
>&
1
|
tee
"${TMPDIR}$*.leakslog"
|
grep
-
q
" 0 leaks for 0 total leaked bytes"
if
[
$
?
-
eq
0
];
then
rm
"${TMPDIR}$*.leakslog"
exit
0
else
exit $
?
fi