summaryrefslogtreecommitdiff
path: root/Tests/TestsWorkingDirectory
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-12-17 09:45:39 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2010-12-17 09:45:39 -0500
commit5249551f9fd11016fffae0cb44581ae3daa2169c (patch)
tree3131f32d4eb9ee5be22fbfbd2ad87760726ee28e /Tests/TestsWorkingDirectory
parent0a014dab5c9566b63783986d98f398efb2fadcb8 (diff)
downloadcmake-5249551f9fd11016fffae0cb44581ae3daa2169c.tar.gz
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 6c4802d4a8..e1c24ba891 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;
}