summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-23 21:44:55 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-23 21:44:55 +0000
commitc67f0250ef817ae4d3c749c82cf8de2e2eac5c99 (patch)
tree1a903bef4a7d5e79d89bdd34852987a468f0272c /llvm/test/tools/llvm-cov/Inputs
parentbac905c684f734c4a110acd0b94deacb29b5a475 (diff)
downloadbcm5719-llvm-c67f0250ef817ae4d3c749c82cf8de2e2eac5c99.tar.gz
bcm5719-llvm-c67f0250ef817ae4d3c749c82cf8de2e2eac5c99.zip
llvm-cov: Add support for gcov's --long-file-names option
GCOV provides an option to prepend output file names with the source file name, to disambiguate between covered data that's included from multiple sources. Add a flag to llvm-cov that does the same. llvm-svn: 207035
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs')
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output8
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/test_long_paths.output8
2 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output b/llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output
new file mode 100644
index 00000000000..e09f4cb9857
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output
@@ -0,0 +1,8 @@
+File 'srcdir/./nested_dir/../test.h'
+Lines executed:100.00% of 1
+srcdir/./nested_dir/../test.h:creating 'test_paths.cpp##test.h.gcov'
+
+File 'srcdir/./nested_dir/../test.cpp'
+Lines executed:84.21% of 38
+srcdir/./nested_dir/../test.cpp:creating 'test_paths.cpp##test.cpp.gcov'
+
diff --git a/llvm/test/tools/llvm-cov/Inputs/test_long_paths.output b/llvm/test/tools/llvm-cov/Inputs/test_long_paths.output
new file mode 100644
index 00000000000..376ee5b78df
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/test_long_paths.output
@@ -0,0 +1,8 @@
+File 'srcdir/./nested_dir/../test.h'
+Lines executed:100.00% of 1
+srcdir/./nested_dir/../test.h:creating 'srcdir#^#test_paths.cpp##srcdir#nested_dir#^#test.h.gcov'
+
+File 'srcdir/./nested_dir/../test.cpp'
+Lines executed:84.21% of 38
+srcdir/./nested_dir/../test.cpp:creating 'srcdir#^#test_paths.cpp##srcdir#nested_dir#^#test.cpp.gcov'
+
OpenPOWER on IntegriCloud