From c67f0250ef817ae4d3c749c82cf8de2e2eac5c99 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 23 Apr 2014 21:44:55 +0000 Subject: 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 --- llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output | 8 ++++++++ llvm/test/tools/llvm-cov/Inputs/test_long_paths.output | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output create mode 100644 llvm/test/tools/llvm-cov/Inputs/test_long_paths.output (limited to 'llvm/test/tools/llvm-cov/Inputs') 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' + -- cgit v1.2.3