Skip to content
Snippets Groups Projects
Commit a38aca3c authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

ENH: remote debugging of sunos

parent d7414678
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009)
SET(KWSYS_DATE_STAMP_MONTH 03)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 19)
SET(KWSYS_DATE_STAMP_DAY 30)
......@@ -15,12 +15,23 @@
int testIOS(int, char*[])
{
kwsys_ios::ostringstream ostr;
ostr << "hello";
if(ostr.str() != "hello")
const char hello[] = "hello";
ostr << hello;
if(ostr.str() != hello)
{
kwsys_ios::cerr << "failed to write hello to ostr" << kwsys_ios::endl;
return 1;
}
const char world[] = "world";
kwsys_ios::ostringstream ostr2;
ostr2.write( hello, strlen(hello) );
ostr2.put( '\0' );
ostr2.write( world, strlen(world) );
if(ostr2.str().size() != strlen(hello) + 1 + strlen(world) )
{
kwsys_ios::cerr << "failed to write hello to ostr2" << kwsys_ios::endl;
return 1;
}
kwsys_ios::istringstream istr(" 10 20 str ");
kwsys_stl::string s;
int x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment