summaryrefslogtreecommitdiff
path: root/tools/oss-fuzz.sh
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2021-02-01 12:40:57 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-01 22:51:43 +0900
commit77591e97327d6fc47f27599ba1937629afb6dd13 (patch)
treef2881a01b50d553df12f26fceeaf416d5334ba06 /tools/oss-fuzz.sh
parent934d0d023e33aa38c56e1e12118be8ddbd839284 (diff)
downloadsystemd-77591e97327d6fc47f27599ba1937629afb6dd13.tar.gz
oss-fuzz: show meson logs
It should help to make it more clear what causes issues like https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30140 and https://github.com/google/oss-fuzz/pull/5084
Diffstat (limited to 'tools/oss-fuzz.sh')
-rwxr-xr-xtools/oss-fuzz.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index 491246b32b..767da15f7c 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -38,7 +38,11 @@ else
fi
fi
-meson $build -D$fuzzflag -Db_lundef=false
+if ! meson $build -D$fuzzflag -Db_lundef=false; then
+ cat $build/meson-logs/meson-log.txt
+ exit 1
+fi
+
ninja -v -C $build fuzzers
# The seed corpus is a separate flat archive for each fuzzer,