Changes in directory llvm-test/SingleSource/Benchmarks/Misc:
richards_benchmark.c updated: 1.3 -> 1.4 --- Log message: Make this program detect its own success and report success/fail through its exit code. Patch by Anton Korobeynikov. --- Diffs of the changes: (+13 -7) richards_benchmark.c | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) Index: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c diff -u llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.3 llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.4 --- llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.3 Tue Aug 30 12:49:18 2005 +++ llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c Sat Nov 25 11:51:02 2006 @@ -22,8 +22,9 @@ #include <stdlib.h> #define Count 10000*1000 -#define Qpktcountval 2326410 -#define Holdcountval 930563 +#define Qpktcountval 23263894 +#define Holdcountval 9305557 + #define TRUE 1 #define FALSE 0 @@ -343,6 +344,7 @@ int main() { struct packet *wkq = 0; + int retval; printf("Bench mark starting\n"); @@ -386,11 +388,15 @@ qpktcount, holdcount); printf("These results are "); - if (qpktcount == Qpktcountval && holdcount == Holdcountval) - printf("correct"); - else printf("incorrect"); - + if (qpktcount == Qpktcountval && holdcount == Holdcountval) { + printf("correct"); + retval = 0; + } else { + printf("incorrect"); + retval = 1; + } + printf("\nend of run\n"); - return 0; + return retval; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits