summaryrefslogtreecommitdiffstats
path: root/Tests/TestsWorkingDirectory
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-12-17 14:45:39 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-12-17 14:45:39 (GMT)
commit5249551f9fd11016fffae0cb44581ae3daa2169c (patch)
tree3131f32d4eb9ee5be22fbfbd2ad87760726ee28e /Tests/TestsWorkingDirectory
parent0a014dab5c9566b63783986d98f398efb2fadcb8 (diff)
downloadCMake-5249551f9fd11016fffae0cb44581ae3daa2169c.zip
CMake-5249551f9fd11016fffae0cb44581ae3daa2169c.tar.gz
CMake-5249551f9fd11016fffae0cb44581ae3daa2169c.tar.bz2
Flip slashes around on Windows
Diffstat (limited to 'Tests/TestsWorkingDirectory')
-rw-r--r--Tests/TestsWorkingDirectory/main.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/TestsWorkingDirectory/main.cxx b/Tests/TestsWorkingDirectory/main.cxx
index 6c4802d..e1c24ba 100644
--- a/Tests/TestsWorkingDirectory/main.cxx
+++ b/Tests/TestsWorkingDirectory/main.cxx
@@ -26,6 +26,13 @@ inline const char* Getcwd(char* buf, unsigned int len)
{
buf[0] = toupper(buf[0]);
}
+ for(char* p = buf; *p; ++p)
+ {
+ if(*p == '\\')
+ {
+ *p = '/';
+ }
+ }
return ret;
}