Misc internal coverage improvements.

This commit is contained in:
Wilson Snyder
2020-05-16 18:02:54 -04:00
parent 201f0d3f5f
commit 17e7da77f0
22 changed files with 259 additions and 38 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ void V3Options::fileNfsFlush(const string& filename) {
// do a open or opendir on the filename.
// Faster to just try both rather than check if a file is a dir.
if (DIR* dirp = opendir(filename.c_str())) {
closedir(dirp);
closedir(dirp); // LCOV_EXCL_LINE
} else if (int fd = ::open(filename.c_str(), O_RDONLY)) {
if (fd > 0) ::close(fd);
}