diff options
author | Max Moroz <mmoroz@chromium.org> | 2017-10-13 15:41:51 +0000 |
---|---|---|
committer | Max Moroz <mmoroz@chromium.org> | 2017-10-13 15:41:51 +0000 |
commit | 03d5e0b73e360a37125d944256206564e8f16ee5 (patch) | |
tree | b85fa33035fedd767865fdcc05f696998beaa428 /test/tools | |
parent | 0797a9c4c1e2005bb0341523b5f13f058cf952d5 (diff) | |
download | llvm-03d5e0b73e360a37125d944256206564e8f16ee5.tar.gz |
[llvm-cov] Fix sources-specified.test so it ignores the order of files printed.
Summary: https://reviews.llvm.org/D38884#896964
Reviewers: vsk, Dor1s
Reviewed By: Dor1s
Differential Revision: https://reviews.llvm.org/D38887
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools')
-rw-r--r-- | test/tools/llvm-cov/sources-specified.test | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/tools/llvm-cov/sources-specified.test b/test/tools/llvm-cov/sources-specified.test index ee81d00194e..54d87cf493f 100644 --- a/test/tools/llvm-cov/sources-specified.test +++ b/test/tools/llvm-cov/sources-specified.test @@ -8,16 +8,15 @@ RUN: %S/Inputs/sources_specified/main.covmapping \ RUN: %S/Inputs/sources_specified/main.cc %S/Inputs/sources_specified/extra \ RUN: | FileCheck -check-prefix=SHOW %s - -REPORT: {{.*}}main.cc{{.*}} -REPORT: {{.*}}extra{{[/\\]}}{{dec|inc}}.h{{.*}} -REPORT: {{.*}}extra{{[/\\]}}{{dec|inc}}.h{{.*}} +# Order of files may differ, check the total values calculated. REPORT-NOT: {{.*}}abs.h{{.*}} +REPORT: {{^}}TOTAL{{.*}}3{{.*}}72.73% -SHOW: {{.*}}main.cc{{.*}} -SHOW: {{.*}}extra{{[/\\]}}{{dec|inc}}.h{{.*}} -SHOW: {{.*}}extra{{[/\\]}}{{dec|inc}}.h{{.*}} +# Order of files may differ, check that there are 3 files and not abs.h. SHOW-NOT: {{.*}}abs.h{{.*}} +SHOW: {{.*}}sources_specified{{.*}} +SHOW: {{.*}}sources_specified{{.*}} +SHOW: {{.*}}sources_specified{{.*}} Instructions for regenerating the test: |