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.
This commit is contained in:
Robert Knight 2011-08-22 19:21:29 +01:00
parent 7c62b4c7af
commit 25e5a1c66c

View file

@ -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
}