RE: stress.cxx problem

From: Valery Fine (Faine) (fine@bnl.gov)
Date: Sat May 08 1999 - 00:39:39 MEST


> I have met a very strange problem with stress.cxx.
> I tried root on a Pentium/233, 64MB RAM machine ( 55 +-3 ROOTMARKS ).
> Everything seems to be o.k. except the stress.cxx if run interactively.
> If I start "root" and then ".x stress.cxx(1000)" I get an error :
> 	Test 16 : CINT test (3 nested loops) ... failed
> 		nlines in stress_lhcb.ps file = 8075
> If I start this test "root -b 'stress.cxx(1000)'" everything works o.k. .
> If I start the compiled version "./stress" everything works o.k., too.
> Thy system is RH5.2 ( kernel 2.0.36 ) + egcs-1.1.1.2 + UDMA disk.
> What can this be ?

  Here is a piece of code from the test/stress.cxx file

   // Check length of Postscript file
   FILE *fp = fopen("stress_lhcb.ps","r");
   char line[200];
   Int_t nlines = 0;
   Int_t nlinesGood = 8063;
   while (fgets(line,200,fp)) {
      nlines++;
   }
   fclose(fp);
   delete c;
   Bool_t OK = kTRUE;
   if (nlines < nlinesGood-10 || nlines > nlinesGood+10) OK = kFALSE;
   if (OK) printf("OK\n");
   else    {
      printf("failed\n");
      printf("%-8s nlines in stress_lhcb.ps file = %d\n"," ",nlines);
   }> 

  It "failes" if the length of the postscript file is not 8063 +- (10) lines
  Since yours reported 8075 - 8063 = 12 > 10 it complained.
  to understand where is the extra lines came from you compare the 
  "right" file and "left" one with "diff" utility.
  (I was told this happens under Windows only, but your message
   says it could be under some UNIX too).

  Hope this helps.
                            Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET