diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2009-04-02 10:12:53 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2009-04-02 10:12:53 (GMT) |
commit | 31c4a269b02f4529ddccfe8fc2b2496b0def51ad (patch) | |
tree | 3f9054ced572226a446b47f9d2fecf56b7ba5199 /Source/kwsys/testIOS.cxx | |
parent | fd7656f7c3c995f3707cf4420ea1af28a6339374 (diff) | |
download | CMake-31c4a269b02f4529ddccfe8fc2b2496b0def51ad.zip CMake-31c4a269b02f4529ddccfe8fc2b2496b0def51ad.tar.gz CMake-31c4a269b02f4529ddccfe8fc2b2496b0def51ad.tar.bz2 |
ENH: trying to reproduce issue on sunos
Diffstat (limited to 'Source/kwsys/testIOS.cxx')
-rw-r--r-- | Source/kwsys/testIOS.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx index ca3f4c8..0ab5c0e 100644 --- a/Source/kwsys/testIOS.cxx +++ b/Source/kwsys/testIOS.cxx @@ -34,6 +34,16 @@ int testIOS(int, char*[]) kwsys_ios::cerr << "failed to write hello to ostr2" << kwsys_ios::endl; return 1; } + static const unsigned char array[] = { 0xff,0x4f,0xff,0x51,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x01,0x01,0xff,0x52,0x00,0x0c,0x00,0x00,0x00,0x01,0x00,0x05,0x04,0x04,0x00,0x01,0xff,0x5c,0x00,0x13,0x40,0x40,0x48,0x48,0x50,0x48,0x48,0x50,0x48,0x48,0x50,0x48,0x48,0x50,0x48,0x48,0x50,0xff,0x64,0x00,0x2c,0x00,0x00,0x43,0x72,0x65,0x61,0x74,0x65,0x64,0x20,0x62,0x79,0x20,0x49,0x54,0x4b,0x2f,0x47,0x44,0x43,0x4d,0x2f,0x4f,0x70,0x65,0x6e,0x4a,0x50,0x45,0x47,0x20,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x31,0x2e,0x30,0xff,0x90,0x00,0x0a,0x00,0x00,0x00,0x00,0x06,0x2c,0x00,0x01,0xff,0x93,0xcf,0xb0,0x18,0x08,0x7f,0xc6,0x99,0xbf,0xff,0xc0,0xf8,0xc1,0xc1,0xf3,0x05,0x81,0xf2,0x83,0x0a,0xa5,0xff,0x10,0x90,0xbf,0x2f,0xff,0x04,0xa8,0x7f,0xc0,0xf8,0xc4,0xc1,0xf3,0x09,0x81,0xf3,0x0c,0x19,0x34 }; + const unsigned int narray = sizeof(array); // 180 + kwsys_ios::stringstream strstr; + strstr.write( (char*)array, narray ); + if(strstr.str().size() != narray ) + { + kwsys_ios::cerr << "failed to write array to strstr" << kwsys_ios::endl; + return 1; + } + kwsys_ios::istringstream istr(" 10 20 str "); kwsys_stl::string s; int x; |