Skip to content

Commit

Permalink
oss-fuzz: Try harder to ensure we always fail fast
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
abartlet committed Aug 26, 2020
1 parent 102e2a2 commit 49f58b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/fuzzing/oss-fuzz/build_samba.sh
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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=""
Expand Down

0 comments on commit 49f58b2

Please sign in to comment.