| Index: tools/clang/scripts/test_tool.py
|
| diff --git a/tools/clang/scripts/test_tool.py b/tools/clang/scripts/test_tool.py
|
| index ce15db6a969137bf3333df262c1febabdd8235cf..f21e8c3cf7097cb5f2c3d6c01e7122cd125eb825 100755
|
| --- a/tools/clang/scripts/test_tool.py
|
| +++ b/tools/clang/scripts/test_tool.py
|
| @@ -119,12 +119,16 @@ def main(argv):
|
| include_paths = []
|
| include_paths.append(
|
| os.path.realpath(os.path.join(tools_clang_directory, '../..')))
|
| - # Many gtest headers expect to have testing/gtest/include in the include
|
| - # search path.
|
| + # Many gtest and gmock headers expect to have testing/gtest/include and/or
|
| + # testing/gmock/include in the include search path.
|
| include_paths.append(
|
| os.path.realpath(os.path.join(tools_clang_directory,
|
| '../..',
|
| 'testing/gtest/include')))
|
| + include_paths.append(
|
| + os.path.realpath(os.path.join(tools_clang_directory,
|
| + '../..',
|
| + 'testing/gmock/include')))
|
|
|
| if len(actual_files) == 0:
|
| print 'Tool "%s" does not have compatible test files.' % tool_to_test
|
|
|