[libclang][test] Suppress annoying 'LIBCLANG TOOLING ERROR' output
authorFangrui Song <maskray@google.com>
Wed, 3 Apr 2019 07:25:04 +0000 (07:25 +0000)
committerFangrui Song <maskray@google.com>
Wed, 3 Apr 2019 07:25:04 +0000 (07:25 +0000)
commit2374bff376c6cf54fbea55c739a30968663a5cf1
tree7eec6e224290a99f85ba08da8cc651e2cbd3222a
parentd9c24dca73d13d06f2a2ef8cd3abf50fcda14e4e
[libclang][test] Suppress annoying 'LIBCLANG TOOLING ERROR' output

check-all invokes check-clang-python which prints the annoying message:

LIBCLANG TOOLING ERROR: fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory

Let's fix it now with os.dup os.dup2 trick.

llvm-svn: 357562
clang/bindings/python/tests/cindex/test_cdb.py