summaryrefslogtreecommitdiff
path: root/lib/fuzzing
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-08-26 12:47:04 +1200
committerAndrew Bartlett <abartlet@samba.org>2020-08-26 01:57:33 +0000
commit49f58b2b093b962e2f3e060b1322a4e61be678a1 (patch)
tree3da94f6802a498837efb5e2430da4a047e1887dd /lib/fuzzing
parent102e2a26d3c48c67a9b1e63de132786cb2cf8b4e (diff)
downloadsamba-49f58b2b093b962e2f3e060b1322a4e61be678a1.tar.gz
oss-fuzz: Try harder to ensure we always fail fast
During a previous attempt to fix the LANG= issue I changed the script invocation to be via a shell, so the set -x et al ensures these are always in place and we fail fast rather than failures only being detected by lack of output. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib/fuzzing')
-rwxr-xr-xlib/fuzzing/oss-fuzz/build_samba.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/fuzzing/oss-fuzz/build_samba.sh b/lib/fuzzing/oss-fuzz/build_samba.sh
index 5d3bc3ff6c3..f798f8feb6a 100755
--- a/lib/fuzzing/oss-fuzz/build_samba.sh
+++ b/lib/fuzzing/oss-fuzz/build_samba.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -eux
+#!/bin/sh
#
# This is not a general-purpose build script, but instead one specific to the Google oss-fuzz compile environment.
#
@@ -14,6 +14,13 @@
# Additional arguments are passed to configure, to allow this to be
# tested in autobuild.py
#
+
+# Ensure we give good trace info, fail right away and fail with unset
+# variables
+set -e
+set -x
+set -u
+
ADDITIONAL_CFLAGS="$CFLAGS"
export ADDITIONAL_CFLAGS
CFLAGS=""