llvm-project/llvm/utils/lit/tests/googletest-detect-duplicate.py
Yuanfang Chen 5850b995ef [lit] follow-up 2380c1b609631, check stdout and stderr separately
The error output is cached so it could be out of order with stdout in
some bots.
2022-09-22 16:42:47 -07:00

13 lines
502 B
Python

# Check we don't add a GoogleTest binary more than once and issue a warning
# when it happens.
# RUN: %{lit} -v --order=random %{inputs}/googletest-detect-duplicate \
# RUN: %{inputs}/googletest-detect-duplicate 2> %t.warn | FileCheck %s
# RUN: FileCheck --check-prefix=CHECK-WARN < %t.warn %s
# CHECK-WARN: warning: Skip adding
# CHECK: -- Testing:
# CHECK: PASS: googletest-detect-duplicate :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]/0
# CHECK: Passed{{ *}}: 1