From 25e5a1c66cdbf041c5f3317eb3148f34e717668b Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 22 Aug 2011 19:21:29 +0100 Subject: [PATCH] Make FileOps::createSymLink() a no-op which logs a warning under Windows instead of reporting an error. This allows the cross-platform unit test to pass on Windows, since it includes creation of a symlink. --- src/FileOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileOps.cpp b/src/FileOps.cpp index 18cf4e4..5ac9fe0 100644 --- a/src/FileOps.cpp +++ b/src/FileOps.cpp @@ -178,7 +178,7 @@ void FileOps::createSymLink(const char* link, const char* target) throw (IOExcep #else // symlinks are not supported under Windows (at least, not universally. // Windows Vista and later do actually support symlinks) - throw IOException("createSymLink() not implemented"); + LOG(Warn,"Skipping symlink creation - not implemented in Windows"); #endif }