Tiny/tests/t2: Print to stdout, not stderr

Jeffrey Oldham oldham at codesourcery.com
Fri Sep 7 17:23:39 UTC 2001


This patch causes t2 to print its success xor failure to standard
output, not standard error, as all other test programs do.

2001-09-07  Jeffrey D. Oldham  <oldham at codesourcery.com>

        * t2.cpp (main): Printing test's success or failure to standard
        output, not standard error, to be consist with other tests.

Tested on       sequential Linux using gcc 3.0.1 by compiling the modified
+executable
Approved by     Stpehen Smith
Applied to      mainline

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: t2.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Tiny/tests/t2.cpp,v
retrieving revision 1.5
diff -c -p -r1.5 t2.cpp
*** t2.cpp	2000/03/07 13:18:20	1.5
--- t2.cpp	2001/09/03 19:37:24
*************** int main()
*** 89,100 ****
  
    if (ecnt == 2)
      {
!       std::cerr << "PASSED" << std::endl;
        return 0;
      }
    else
      {
!       std::cerr << "FAILED" << std::endl;
        return 1;
      }
  }
--- 89,100 ----
  
    if (ecnt == 2)
      {
!       std::cout << "PASSED" << std::endl;
        return 0;
      }
    else
      {
!       std::cout << "FAILED" << std::endl;
        return 1;
      }
  }


More information about the pooma-dev mailing list