[cfe-dev] clang-tidy test failures

Alexander Kornienko alexfh at google.com
Mon Sep 22 09:23:51 PDT 2014


Can you provide some info about your setup (OS, type of the build you use -
cmake/configure, with or without assertions, etc.)? Also, which shell are
you using? It looks like the check_clang_tidy_fix.sh script misbehaves.

On Mon, Sep 22, 2014 at 9:58 AM, Csaba Raduly <rcsaba at gmail.com> wrote:

> svn  update /home/csaba/workspace/LLVM/llvm
> Updating '/home/csaba/workspace/LLVM/llvm':
> At revision 218237.
> Updating '/home/csaba/workspace/LLVM/llvm/projects/compiler-rt':
> At revision 218237.
> Updating '/home/csaba/workspace/LLVM/llvm/tools/clang':
> At revision 218237.
> Updating '/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra':
> At revision 218237.
> Updating
> '/home/csaba/workspace/LLVM/llvm/tools/clang/tools/include-what-you-use':
> At revision 582.
> Summary of updates:
>   Updated '/home/csaba/workspace/LLVM/llvm/projects/compiler-rt' to
> r218237.
>   Updated '/home/csaba/workspace/LLVM/llvm/tools/clang' to r218237.
>   Updated '/home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra' to
> r218237.
>   Updated
> '/home/csaba/workspace/LLVM/llvm/tools/clang/tools/include-what-you-use'
> to r582.
>
> ...
>
> FAIL: Clang Tools :: clang-tidy/avoid-c-style-casts.c (6538 of 19474)
> ******************** TEST 'Clang Tools ::
> clang-tidy/avoid-c-style-casts.c' FAILED ********************
> Script:
> --
> $(dirname
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/avoid-c-style-casts.c)/check_clang_tidy_fix.sh
>
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/avoid-c-style-casts.c
> google-readability-casting
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/avoid-c-style-casts.c.tmp
> -x c
> --
> Exit Code: 1
>
> Command Output (stderr):
> --
>
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/check_clang_tidy_fix.sh:
> 18:
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/check_clang_tidy_fix.sh:
> 2: not found
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/avoid-c-style-casts.c.tmp.cpp.msg:7:123:
> error: CHECK-MESSAGES-NOT: string occurred!
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/avoid-c-style-casts.c.tmp.cpp:8:14:
> warning: C-style casts are discouraged. Use const_cast.
> [google-readability-casting]
>
>                                                    ^
> command line:1:22: note: CHECK-MESSAGES-NOT: pattern specified here
> -implicit-check-not='{{warning|error}}:'
>                      ^
>
> --
>
> ********************
> FAIL: Clang Tools :: clang-tidy/llvm-include-order.cpp (6557 of 19474)
> ******************** TEST 'Clang Tools ::
> clang-tidy/llvm-include-order.cpp' FAILED ********************
> Script:
> --
> $(dirname
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/llvm-include-order.cpp)/check_clang_tidy_fix.sh
>
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/llvm-include-order.cpp
> llvm-include-order
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/llvm-include-order.cpp.tmp
> -isystem
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/Inputs/Headers
> --
> Exit Code: 1
>
> Command Output (stderr):
> --
>
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/check_clang_tidy_fix.sh:
> 18:
> /home/csaba/workspace/LLVM/llvm/tools/clang/tools/extra/test/clang-tidy/check_clang_tidy_fix.sh:
> 2: not found
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/llvm-include-order.cpp.tmp.cpp.msg:1:124:
> error: CHECK-MESSAGES-NOT: string occurred!
>
> /home/csaba/workspace/LLVM/build/tools/clang/tools/extra/test/clang-tidy/Output/llvm-include-order.cpp.tmp.cpp:8:10:
> error: 'j.h' file not found [clang-diagnostic-error]
>
>                                                     ^
> command line:1:22: note: CHECK-MESSAGES-NOT: pattern specified here
> -implicit-check-not='{{warning|error}}:'
>                      ^
>
> --
>
> ********************
> Testing Time: 80.93s
> ********************
> Failing Tests (2):
>     Clang Tools :: clang-tidy/avoid-c-style-casts.c
>     Clang Tools :: clang-tidy/llvm-include-order.cpp
>
>
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
> Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140922/2f9d085c/attachment.html>


More information about the cfe-dev mailing list