Mercurial > projects > dstress
comparison dstress.c @ 676:f90958db522d
extended debug output
author | thomask |
---|---|
date | Tue, 20 Sep 2005 09:01:01 +0000 |
parents | 463c60e26040 |
children | be27bc9d0d28 |
comparison
equal
deleted
inserted
replaced
675:3bceadfda331 | 676:f90958db522d |
---|---|
333 }else{ | 333 }else{ |
334 return 1; | 334 return 1; |
335 } | 335 } |
336 | 336 |
337 /* specific error messages */ | 337 /* specific error messages */ |
338 #ifdef DEBUG | |
339 fprintf(stderr, "pattern(dmd):\t%s\n", dmd); | |
340 fprintf(stderr, "pattern(gdc):\t%s\n", gdc); | |
341 #endif | |
338 | 342 |
339 if( (dmd!=NULL && strstr(buffer, dmd)) | 343 if( (dmd!=NULL && strstr(buffer, dmd)) |
340 || (gdc!=NULL && strstr(buffer, gdc)) | 344 || (gdc!=NULL && strstr(buffer, gdc)) |
341 || (dmd==NULL && gdc==NULL)){ | 345 || (dmd==NULL && gdc==NULL)){ |
342 back=1; | 346 back=1; |
429 return 1; | 433 return 1; |
430 } | 434 } |
431 | 435 |
432 /* specific error messages */ | 436 /* specific error messages */ |
433 | 437 |
438 #ifdef DEBUG | |
439 fprintf(stderr, "pattern(phobosShort):\t%s\n", phobos); | |
440 fprintf(stderr, "pattern(phobosLong):\t%s\n", phobosLong); | |
441 #endif | |
442 | |
434 if( (phobos && strstr(buffer, phobos)) | 443 if( (phobos && strstr(buffer, phobos)) |
435 || (phobosLong && strstr(buffer, phobosLong))) | 444 || (phobosLong && strstr(buffer, phobosLong))) |
436 { | 445 { |
437 back=1; | 446 back=1; |
438 } | 447 } |
694 res = crashRun(buffer); | 703 res = crashRun(buffer); |
695 | 704 |
696 /* diagnostic 1/3 */ | 705 /* diagnostic 1/3 */ |
697 buffer = loadFile(TLOG); | 706 buffer = loadFile(TLOG); |
698 fprintf(stderr, "%s", buffer); | 707 fprintf(stderr, "%s", buffer); |
699 good_error = checkErrorMessage(error_file, error_line, buffer); | 708 if(modus==RUN){ |
709 good_error = checkErrorMessage(error_file, error_line, buffer); | |
710 }else{ | |
711 good_error = 1; | |
712 } | |
700 if(hadExecCrash(buffer)){ | 713 if(hadExecCrash(buffer)){ |
701 printf("ERROR:\t%s [internal compiler error]\n", case_file); | 714 printf("ERROR:\t%s [internal compiler error]\n", case_file); |
702 fprintf(stderr, "\n--------\n"); | 715 fprintf(stderr, "\n--------\n"); |
703 return EXIT_SUCCESS; | 716 return EXIT_SUCCESS; |
704 }else if(res==EXIT_FAILURE && good_error){ | 717 }else if(res==EXIT_FAILURE && good_error){ |