From 6188cb8aa778c023bc19d1d6bc02e7947d669298 Mon Sep 17 00:00:00 2001 From: "William R. Otte" Date: Tue, 25 Jul 2006 21:51:11 +0000 Subject: Tue Jul 25 21:51:07 UTC 2006 William R. Otte --- ACE/ChangeLog | 7 +++++++ ACE/bin/PythonACE/fuzz/inline.py | 2 +- ACE/bin/PythonACE/fuzz/max_project_len.py | 7 ++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ACE/ChangeLog b/ACE/ChangeLog index f46979b4090..7133216d494 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,10 @@ +Tue Jul 25 21:51:07 UTC 2006 William R. Otte + + * bin/PythonACE/fuzz/max_project_len.py + * bin/PythonACE/fuzz/inline.py + + Fixed errors in these checks. + Tue Jul 25 20:52:51 UTC 2006 William R. Otte * bin/PythonACE/fuzz/cpp_inline.py diff --git a/ACE/bin/PythonACE/fuzz/inline.py b/ACE/bin/PythonACE/fuzz/inline.py index 9610f0cf76e..c981289d105 100644 --- a/ACE/bin/PythonACE/fuzz/inline.py +++ b/ACE/bin/PythonACE/fuzz/inline.py @@ -10,7 +10,7 @@ regex = re.compile ("(\s|^)+inline\s+") begin_exclude = re.compile ("FUZZ\: disable check_for_inline") end_exclude = re.compile ("FUZZ\: enable check_for_inline") -error_message = "contains a C++ inline keyword, instead of ACE_INLINE\n" +error_message = ": error: contains a C++ inline keyword, instead of ACE_INLINE\n" from _generic_handler import generic_handler diff --git a/ACE/bin/PythonACE/fuzz/max_project_len.py b/ACE/bin/PythonACE/fuzz/max_project_len.py index 39d3b14c163..e00c7937026 100644 --- a/ACE/bin/PythonACE/fuzz/max_project_len.py +++ b/ACE/bin/PythonACE/fuzz/max_project_len.py @@ -17,9 +17,10 @@ def handler (file_name, file_content): return 0 else: for group in match.groups (): - stderr.write (file_name + ":0: error: Project named " + group + - " meets or exceeds the maximum project name length of " + - str (max_proj_len) + " characters\n") + if (len (group) >= max_proj_len): + stderr.write (file_name + ":0: error: Project named " + group + + " meets or exceeds the maximum project name length of " + + str (max_proj_len) + " characters\n") return 1 -- cgit v1.2.1