aboutsummaryrefslogtreecommitdiff
path: root/runtest.rb
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-05 16:29:58 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-05 16:29:58 +0900
commitb7be8f1fd7d8e5657d371c1409eee3348676abf7 (patch)
tree151ce38005768243399c8a3a0bf59ebac0d06838 /runtest.rb
parent3c60c125ef1003f8bce49c0a30996aee48871414 (diff)
downloadkati-b7be8f1fd7d8e5657d371c1409eee3348676abf7.tar.gz
[C++] Fix err_include.mk for -c -n
Diffstat (limited to 'runtest.rb')
-rwxr-xr-xruntest.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtest.rb b/runtest.rb
index 7143ec9..f903310 100755
--- a/runtest.rb
+++ b/runtest.rb
@@ -134,9 +134,9 @@ def normalize_make_log(expected, mk, via_ninja)
# ninja to produce. Remove them if we're not testing ninja.
if !via_ninja
expected.gsub!(/^ninja: warning: .*\n/, '')
- # For C++ kati.
- expected.gsub!(/(: )(\S+): (No such file or directory)\n\*\*\* No rule to make target "\2"./, '\1\2: \3')
end
+ # Normalization for "include foo" with C++ kati.
+ expected.gsub!(/(: )(\S+): (No such file or directory)\n\*\*\* No rule to make target "\2"./, '\1\2: \3')
expected
end
@@ -147,9 +147,6 @@ def normalize_kati_log(output)
output.gsub!(/^\*kati\*.*\n/, '')
output.gsub!(/^c?kati: /, '')
output.gsub!(/[`'"]/, '"')
- # For go kati.
- output.gsub!(/(: )open (\S+): n(o such file or directory)\nNOTE:.*/,
- "\\1\\2: N\\3")
output.gsub!(/\/bin\/sh: ([^:]*): command not found/,
"\\1: Command not found")
output.gsub!(/.*: warning for parse error in an unevaluated line: .*\n/, '')
@@ -157,6 +154,9 @@ def normalize_kati_log(output)
output.gsub!(/^\/bin\/sh: line 0: /, '')
output.gsub!(/ (\.\/+)+kati\.\S+/, '') # kati log files in find_command.mk
output.gsub!(/ (\.\/+)+test\S+.json/, '') # json files in find_command.mk
+ # Normalization for "include foo" with Go kati.
+ output.gsub!(/(: )open (\S+): n(o such file or directory)\nNOTE:.*/,
+ "\\1\\2: N\\3")
output
end