File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
18
18
19
19
### Fixed
20
20
- All test files were reporting "not ok" in TAP output. Now they are OK iff all asserts pass.
21
+ - Directories with a C++ extension in their name could cause problems. Now they are ignored.
22
+ - ` CppLibrary ` had trouble with symlinks. It shoudn't anymore.
21
23
22
24
### Security
23
25
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ def initialize(base_dir)
40
40
# @return [Array<String>] The paths of the found files
41
41
def cpp_files_in ( some_dir )
42
42
real = File . realpath ( some_dir )
43
- Find . find ( real ) . select { |path | CPP_EXTENSIONS . include? ( File . extname ( path ) ) }
43
+ files = Find . find ( real ) . reject { |path | File . directory? ( path ) }
44
+ ret = files . select { |path | CPP_EXTENSIONS . include? ( File . extname ( path ) ) }
45
+ ret
44
46
end
45
47
46
48
# CPP files that are part of the project library under test
@@ -80,8 +82,11 @@ def test_files
80
82
# Find all directories in the project library that include C++ header files
81
83
# @return [Array<String>]
82
84
def header_dirs
83
- files = Find . find ( @base_dir ) . select { |path | HPP_EXTENSIONS . include? ( File . extname ( path ) ) }
84
- files . map { |path | File . dirname ( path ) } . uniq
85
+ real = File . realpath ( @base_dir )
86
+ all_files = Find . find ( real ) . reject { |path | File . directory? ( path ) }
87
+ files = all_files . select { |path | HPP_EXTENSIONS . include? ( File . extname ( path ) ) }
88
+ ret = files . map { |path | File . dirname ( path ) } . uniq
89
+ ret
85
90
end
86
91
87
92
# wrapper for the GCC command
You can’t perform that action at this time.
0 commit comments