From ceebac93f66c3927997b708caf6f2eb2d1827593 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 9 Jun 2016 09:08:59 -0400 Subject: [PATCH] Tests: Restore fix to Plugin test on Watcom compiler The fix in commit v3.4.0-rc1~127^2 (Tests: Fix Plugin test on Watcom compiler, 2015-09-03) was reverted accidentally by automated .c_str() removal. Restore it and add a comment explaining why. --- Tests/Plugin/src/example_exe.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/Plugin/src/example_exe.cxx b/Tests/Plugin/src/example_exe.cxx index 86b54f709..017fbf607 100644 --- a/Tests/Plugin/src/example_exe.cxx +++ b/Tests/Plugin/src/example_exe.cxx @@ -31,7 +31,9 @@ int main() kwsys::DynamicLoader::LibraryHandle handle = kwsys::DynamicLoader::OpenLibrary(libName.c_str()); if (!handle) { - std::cerr << "Could not open plugin \"" << libName << "\"!" << std::endl; + // Leave the .c_str() on this one. It is needed on OpenWatcom. + std::cerr << "Could not open plugin \"" << libName.c_str() << "\"!" + << std::endl; return 1; } kwsys::DynamicLoader::SymbolPointer sym =