aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/test-suite
diff options
authorChristopher Li <sparse@chrisli.org>2014-10-10 22:37:07 +0800
committerChristopher Li <sparse@chrisli.org>2014-10-10 22:43:02 +0800
commitfe57afa0b44a5f49046cf1ac84040bcf172b8fa8 (patch)
tree5454f42d431e3702b7a58beb1bcdec0214420332 /validation/test-suite
parent4d8811879a1cc48c1cdd0b0466dc6865c715d149 (diff)
downloadsparse-dev-fe57afa0b44a5f49046cf1ac84040bcf172b8fa8.tar.gz
rename -Werror to -Wsparse-error
Sparse is often share compile flags. So Werror is usually mean gcc should treat warning as error. Apply the same option to sparse will cause the Linux kernel checking fail the build. We don't want that. Rename the sparse option to -Wsparse-error. It allow caller to control gcc and sparse behavior seperately. It also make sparse return error status only when -Wsparse-error is present. Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'validation/test-suite')
-rwxr-xr-xvalidation/test-suite7
1 files changed, 1 insertions, 6 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 61667a56..744383dc 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -117,12 +117,7 @@ do_test()
if [ "$?" -eq "0" ]; then
expected_exit_value=`echo $last_result | tr -d ' '`
else
- grep -q -E "^[^:]+:[[:digit:]]+:[[:digit:]]+: error:" "$file".error.expected
- if [ "$?" -eq "0" ]; then
- expected_exit_value=1
- else
- expected_exit_value=0
- fi
+ expected_exit_value=0
fi
verbose "Expecting exit value: $expected_exit_value"