diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 9142e61c23..2a8092dfed 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -486,9 +486,11 @@ void wxFileName::Assign(const wxString& fullpathOrig, SplitPath(fullpath, &volume, &path, &nameDummy, &extDummy, format); - wxASSERT_MSG( nameDummy.empty() && extDummy.empty(), +#ifndef __VMS + // This test makes no sense on an OpenVMS system. + wxASSERT_MSG( nameDummy.empty() && extDummy.empty(), wxT("the path shouldn't contain file name nor extension") ); - +#endif Assign(volume, path, name, ext, hasExt, format); }