[test-suite] r202387 - Replace stderr with stdout to make deterministic

Robert Lytton robert at xmos.com
Thu Feb 27 04:45:26 PST 2014


Author: rlytton
Date: Thu Feb 27 06:45:26 2014
New Revision: 202387

URL: http://llvm.org/viewvc/llvm-project?rev=202387&view=rev
Log:
Replace stderr with stdout to make deterministic

MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec

Modified:
    test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
    test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
    test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c?rev=202387&r1=202386&r2=202387&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c Thu Feb 27 06:45:26 2014
@@ -129,7 +129,7 @@ int dc_dct_pred[];
     if (i>=64)
     {
       if (!Quiet_Flag)
-        fprintf(stderr,"DCT coeff index (i) out of bounds (intra)\n");
+        fprintf(stdout,"DCT coeff index (i) out of bounds (intra)\n");
       Fault_Flag = 1;
       return;
     }
@@ -225,7 +225,7 @@ int comp;
     if (i>=64)
     {
       if (!Quiet_Flag)
-        fprintf(stderr,"DCT coeff index (i) out of bounds (inter)\n");
+        fprintf(stdout,"DCT coeff index (i) out of bounds (inter)\n");
       Fault_Flag = 1;
       return;
     }
@@ -397,7 +397,7 @@ int dc_dct_pred[];
     if (i>=64)
     {
       if (!Quiet_Flag)
-        fprintf(stderr,"DCT coeff index (i) out of bounds (intra2)\n");
+        fprintf(stdout,"DCT coeff index (i) out of bounds (intra2)\n");
       Fault_Flag = 1;
       return;
     }
@@ -549,7 +549,7 @@ int comp;
     if (i>=64)
     {
       if (!Quiet_Flag)
-        fprintf(stderr,"DCT coeff index (i) out of bounds (inter2)\n");
+        fprintf(stdout,"DCT coeff index (i) out of bounds (inter2)\n");
       Fault_Flag = 1;
       return;
     }

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output?rev=202387&r1=202386&r2=202387&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output Thu Feb 27 06:45:26 2014
@@ -1,9 +1,14 @@
 DCT coeff index (i) out of bounds (intra)
 DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
 DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_address_increment code
 DCT coeff index (i) out of bounds (intra)
 DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
+Invalid macroblock_type code
 DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
 DCT coeff index (i) out of bounds (intra)
 DCT coeff index (i) out of bounds (intra)
 DCT coeff index (i) out of bounds (inter)
@@ -12,34 +17,29 @@ DCT coeff index (i) out of bounds (inter
 DCT coeff index (i) out of bounds (inter)
 DCT coeff index (i) out of bounds (intra)
 DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
+Invalid macroblock_address_increment code
+start_of_slice(): Premature end of picture
 saving tmp0.Y
 saving tmp0.U
 saving tmp0.V
 DCT coeff index (i) out of bounds (inter)
+invalid Huffman code in Decode_MPEG1_Non_Intra_Block()
+Invalid motion_vector code (MBA 0, pic 0)
 DCT coeff index (i) out of bounds (inter)
+Invalid motion_vector code (MBA 0, pic 0)
+Invalid coded_block_pattern code
 saving tmp1.Y
 saving tmp1.U
 saving tmp1.V
+Invalid coded_block_pattern code
 DCT coeff index (i) out of bounds (inter)
+Invalid macroblock_type code
+Invalid macroblock_address_increment code
 saving tmp2.Y
 saving tmp2.U
 saving tmp2.V
 saving tmp3.Y
 saving tmp3.U
 saving tmp3.V
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
-start_of_slice(): Premature end of picture
-invalid Huffman code in Decode_MPEG1_Non_Intra_Block()
-Invalid motion_vector code (MBA 0, pic 0)
-Invalid motion_vector code (MBA 0, pic 0)
-Invalid coded_block_pattern code
-Invalid coded_block_pattern code
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
 exit 0

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c?rev=202387&r1=202386&r2=202387&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c Thu Feb 27 06:45:26 2014
@@ -160,7 +160,7 @@ int offset,incr,width,height;
   unsigned char *p;
 
   if (!Quiet_Flag)
-    fprintf(stderr,"saving %s\n",mybasename(name));
+    fprintf(stdout,"saving %s\n",mybasename(name));
 
   if ((outfile = open(name,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
   {
@@ -222,7 +222,7 @@ int offset, incr, height;
   strcat(outname,".SIF");
 
   if (!Quiet_Flag)
-    fprintf(stderr,"saving %s\n",mybasename(outname));
+    fprintf(stdout,"saving %s\n",mybasename(outname));
 
   if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
   {
@@ -315,7 +315,7 @@ int tgaflag;
   strcat(outname,tgaflag ? ".tga" : ".ppm");
 
   if (!Quiet_Flag)
-    fprintf(stderr,"saving %s\n",mybasename(outname));
+    fprintf(stdout,"saving %s\n",mybasename(outname));
 
   if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
   {





More information about the llvm-commits mailing list