compnerd added a comment. Rather than silently ignoring tests when the DirectoryWatcher isn't created, can you please print an error message and exit with an error code to indicate the test failed?
================ Comment at: clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:331 + return llvm::make_error<llvm::StringError>( + std::string("Path.empty() error: ") + strerror(errno), + llvm::inconvertibleErrorCode()); ---------------- I think that this is pointless. Just make it a constant string: "no path specified". `Path` is a user specified parameter, `errno` doesn't tell us anything. ================ Comment at: clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp:218 + return llvm::make_error<llvm::StringError>( + std::string("Path.empty() error: ") + strerror(errno), + llvm::inconvertibleErrorCode()); ---------------- Similar. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65704/new/ https://reviews.llvm.org/D65704 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits