[llvm] r315691 - [llvm-cov] Fix sources-specified.test so it ignores the order of files printed.
Max Moroz via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 08:41:51 PDT 2017
Author: dor1s
Date: Fri Oct 13 08:41:51 2017
New Revision: 315691
URL: http://llvm.org/viewvc/llvm-project?rev=315691&view=rev
Log:
[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
Modified:
llvm/trunk/test/tools/llvm-cov/sources-specified.test
Modified: llvm/trunk/test/tools/llvm-cov/sources-specified.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/sources-specified.test?rev=315691&r1=315690&r2=315691&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/sources-specified.test (original)
+++ llvm/trunk/test/tools/llvm-cov/sources-specified.test Fri Oct 13 08:41:51 2017
@@ -8,16 +8,15 @@ RUN: %S/Inputs/sources_specified/main.
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:
More information about the llvm-commits
mailing list