diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-10 16:06:52 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-10 16:06:52 +0100 |
commit | 456dfc9b18fedf1baf4f04cfcbb5d7b4ebb41fcd (patch) | |
tree | ed238ac2edc80ea0129b77dac3158287b331a3f5 | |
parent | e2bc66cdfe7e6ecd7f3ec78d9ff0933f90a8b535 (diff) |
ci: simple-cam: Suppress known leak
The libevent has a known leak. Suppress it to prevent
generating lots of error reports.
While here, update the test ID and capture stderr into stdout
when running the test so that the logging infrastructure tracks
all the errors.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-x | 60-simple-cam.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/60-simple-cam.sh b/60-simple-cam.sh index c5f1490..ae14305 100755 --- a/60-simple-cam.sh +++ b/60-simple-cam.sh @@ -14,7 +14,7 @@ source ./common.sh LIBCAMERA_BUILD=${1:-"$(builddir unit-tests)"} LIBCAMERA=$LIBCAMERA_BUILD/source/ -ID=simple-cam +ID=$0 SIMPLECAM=$(srcdir simple-cam) SIMPLECAM_REPO=https://git.libcamera.org/libcamera/simple-cam.git @@ -54,8 +54,12 @@ function build() { function run() { BUILDDIR="$(builddir $ID)" + # libevent has a known memory leak. Its out of our control, Suppress it. + echo "leak:event_new" > $BUILDDIR/leak-suppressions.txt + LD_LIBRARY_PATH=$LIBCAMERA_BUILD/src/libcamera:$LIBCAMERA_BUILD/src/libcamera/base \ - $BUILDDIR/simple-cam + LSAN_OPTIONS=suppressions=$BUILDDIR/leak-suppressions.txt \ + $BUILDDIR/simple-cam 2>&1 } logfile=$(log_filename $ID) |