=== modified file 'lsb-xml2/runtest.c' --- lsb-xml2/runtest.c 2007-07-25 12:49:30 +0000 +++ lsb-xml2/runtest.c 2008-10-09 15:05:09 +0000 @@ -4301,6 +4301,9 @@ char *result; char *error; int mem; +#ifdef LSB_TET_OUTPUT_ENABLED + char *ptr; +#endif if (tst == NULL) return(-1); if (tst->in != NULL) { @@ -4357,8 +4360,12 @@ #ifdef LSB_TET_OUTPUT_ENABLED lsb_dump_captured_stderr(); - tetj_testcase_info(journal, tetj_activity_count, - tetj_tp_count, 0, 0, 0, tmp_string); + ptr = strdup(tmp_string); + while(ptr) { + tetj_testcase_info(journal, tetj_activity_count, + tetj_tp_count, 0, 0, 0, + strsep(&ptr, "\n")); + } tetj_result(journal, tetj_activity_count, tetj_tp_count, TETJ_FAIL); #endif @@ -4373,8 +4380,11 @@ #ifdef LSB_TET_OUTPUT_ENABLED lsb_dump_captured_stderr(); - tetj_testcase_info(journal, tetj_activity_count, - tetj_tp_count, 0, 0, 0, tmp_string); + while(ptr) { + tetj_testcase_info(journal, tetj_activity_count, + tetj_tp_count, 0, 0, 0, + strsep(&ptr, "\n")); + } tetj_result(journal, tetj_activity_count, tetj_tp_count, TETJ_FAIL); #endif @@ -4421,7 +4431,10 @@ if (res != 0) { #ifdef LSB_TET_OUTPUT_ENABLED lsb_dump_captured_stderr(); - tetj_testcase_info(journal, tetj_activity_count, tetj_tp_count, 0, 0, 0, tmp_string); + ptr = strdup(tmp_string); + while(ptr) { + tetj_testcase_info(journal, tetj_activity_count, + tetj_tp_count, 0, 0, 0, strsep(&ptr, "\n")); tetj_result(journal, tetj_activity_count, tetj_tp_count, TETJ_FAIL); #endif nb_errors++;