summaryrefslogtreecommitdiff
path: root/dist/s_style
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-12 09:27:40 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-12 09:27:40 -0400
commit31e150dfd7e33aa8254566510481250830f43e8a (patch)
tree1eca50e5c6ceb0b218f303f9ed587c7499f583cc /dist/s_style
parent6985d990a5f499972b779a21c3e1547b0a66507d (diff)
downloadmongo-31e150dfd7e33aa8254566510481250830f43e8a.tar.gz
Update dist/s_style to check for cases where we jump to the error label
after passing it, that's an infinite loop.
Diffstat (limited to 'dist/s_style')
-rw-r--r--dist/s_style4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/s_style b/dist/s_style
index 56e4ddfc529..9325e3e298b 100644
--- a/dist/s_style
+++ b/dist/s_style
@@ -16,10 +16,10 @@ for f in `find examples ext src test -name '*.[ci]'`; do
-e 's/\n/ /g' \
-e p \
-e '{s/.*//;x;}' |
- egrep '(WT_ERR|WT_ERR_MSG|WT_ERR_NOTFOUND_OK|WT_ERR_TEST|WT_ILLEGAL_VALUE_ERR|WT_VERBOSE_ERR)\(.*(WT_ASSERT_RET|WT_ILLEGAL_VALUE|WT_RET|WT_RET_MSG|WT_RET_NOTFOUND_OK|WT_RET_TEST|WT_VERBOSE_RET|WT_VERBOSE_RETVAL)\(.*err:' |
+ egrep '(WT_ERR|WT_ERR_MSG|WT_ERR_NOTFOUND_OK|WT_ERR_TEST|WT_ILLEGAL_VALUE_ERR)\(.*(WT_ASSERT_RET|WT_ILLEGAL_VALUE|WT_RET|WT_RET_MSG|WT_RET_NOTFOUND_OK|WT_RET_TEST|WT_VERBOSE_RET|WT_VERBOSE_RETVAL)\(.*err:|[^a-z_]err:.*(WT_ERR|WT_ERR_MSG|WT_ERR_NOTFOUND_OK|WT_ERR_TEST|WT_ILLEGAL_VALUE_ERR)\(' |
sed 's/:.*//' > $t
test -s $t && {
- echo "$f: function with return after a jump to an error label"
+ echo "$f: return after a jump to the error label or a jump to the error label after the error label"
sed 's/^/function @ line:/' < $t
}
done