Sign in
fuchsia
/
third_party
/
swift-corelibs-libdispatch
/
40fc1f3f7e5ef05653c3678b158fffef4d5b6106
/
.
/
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