diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2009-04-05 10:55:52 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2009-04-05 10:55:52 (GMT) |
commit | 1ab71112c2af3314e408399bee73ef4b9d3ed304 (patch) | |
tree | 0eb9fc3a0b3da5c85a5d3bcd8b44ecbd1c2abfff /Source/kwsys/testIOS.cxx | |
parent | 434bd99dc7ccea51959923083e84377101b38fbb (diff) | |
download | CMake-1ab71112c2af3314e408399bee73ef4b9d3ed304.zip CMake-1ab71112c2af3314e408399bee73ef4b9d3ed304.tar.gz CMake-1ab71112c2af3314e408399bee73ef4b9d3ed304.tar.bz2 |
ENH: hopefully seekp is the call making kwsys::stringstream behaves oddly on sunos
Diffstat (limited to 'Source/kwsys/testIOS.cxx')
-rw-r--r-- | Source/kwsys/testIOS.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx index 0ab5c0e..b4c5722 100644 --- a/Source/kwsys/testIOS.cxx +++ b/Source/kwsys/testIOS.cxx @@ -38,6 +38,9 @@ int testIOS(int, char*[]) const unsigned int narray = sizeof(array); // 180 kwsys_ios::stringstream strstr; strstr.write( (char*)array, narray ); + strstr.seekp( narray / 2 ); // set position of put pointer in mid string + //const char zero[] = {0, 0}; + //strstr.write( zero, 2 ); if(strstr.str().size() != narray ) { kwsys_ios::cerr << "failed to write array to strstr" << kwsys_ios::endl; |