Kaydet (Commit) a43d163d authored tarafından Lars Langhans's avatar Lars Langhans

changes to not longer use iostream in the most files.

üst ded59609
...@@ -21,6 +21,7 @@ mkdir: %_DEST%\inc%_EXT%\cppunit\extensions ...@@ -21,6 +21,7 @@ mkdir: %_DEST%\inc%_EXT%\cppunit\extensions
# ..\%__SRC%\bin\testshl.exe %_DEST%\bin%_EXT%\testshl.exe # ..\%__SRC%\bin\testshl.exe %_DEST%\bin%_EXT%\testshl.exe
..\%__SRC%\bin\testshl2.exe %_DEST%\bin%_EXT%\testshl2.exe ..\%__SRC%\bin\testshl2.exe %_DEST%\bin%_EXT%\testshl2.exe
..\%__SRC%\bin\testshl2 %_DEST%\bin%_EXT%\testshl2 ..\%__SRC%\bin\testshl2 %_DEST%\bin%_EXT%\testshl2
..\source\codegen\codegen.pl %_DEST%\bin%_EXT%\codegen_testshl2.pl
mkdir: %_DEST%\inc%_EXT%\testshl mkdir: %_DEST%\inc%_EXT%\testshl
..\inc\*.hxx %_DEST%\inc%_EXT%\testshl\*.hxx ..\inc\*.hxx %_DEST%\inc%_EXT%\testshl\*.hxx
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: testshl.cxx,v $ * $RCSfile: testshl.cxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: lla $ $Date: 2003-01-20 11:09:46 $ * last change: $Author: lla $ $Date: 2003-01-28 10:13:33 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -136,14 +136,15 @@ std::auto_ptr<Outputter> initOutputter(GetOpt & _aOptions) ...@@ -136,14 +136,15 @@ std::auto_ptr<Outputter> initOutputter(GetOpt & _aOptions)
Log* pLog = new Log( FileHelper::convertPath( sLogFile ) ); Log* pLog = new Log( FileHelper::convertPath( sLogFile ) );
if ( pLog->open() != osl::FileBase::E_None ) if ( pLog->open() != osl::FileBase::E_None )
{ {
cerr << "could not open LogFile: " << pLog->getName().getStr() << endl; // cerr << "could not open LogFile: " << pLog->getName().getStr() << endl;
fprintf(stderr, "could not open LogFile: %s\n", pLog->getName().getStr());
exit(1); exit(1);
} }
pOutputter = std::auto_ptr<Outputter>(new Outputter(pLog)); pOutputter = std::auto_ptr<Outputter>(new Outputter(pLog));
} }
else else
{ {
pOutputter = std::auto_ptr<Outputter>(new Outputter(cout)); pOutputter = std::auto_ptr<Outputter>(new Outputter(std::cout));
} }
return pOutputter; return pOutputter;
...@@ -188,7 +189,8 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -188,7 +189,8 @@ int _cdecl main( int argc, char* argv[] )
// no library is given, but if a jobonly list is given, we should generate UNKNOWN errors. // no library is given, but if a jobonly list is given, we should generate UNKNOWN errors.
if (! opt.hasOpt("-jobonly")) if (! opt.hasOpt("-jobonly"))
{ {
std::cerr << "error: At least a library or a job file should given." << std::endl; // std::cerr << "error: At least a library or a job file should given." << std::endl;
fprintf(stderr, "error: At least a library or a job file should given.\n");
opt.showUsage(); opt.showUsage();
exit(0); exit(0);
} }
...@@ -236,21 +238,14 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -236,21 +238,14 @@ int _cdecl main( int argc, char* argv[] )
// all functions + the given, no one twice // all functions + the given, no one twice
// only the given functions // only the given functions
// Signals info
// We can only say which function has thrown a signal, and what signal was thrown,
// but not really where the signal was thrown. You have to debug this function by hand.
// Exception info // Exception info
// Due to the fact that exceptions will caught, on exceptions the ASSERTION text is given. // Due to the fact that exceptions will caught, on exceptions the ASSERTION text is given.
// but we know also the real thrown exception // but we know also the real thrown exception
// PARAMETER: // PARAMETER:
// - BaselibTest.txt anders benennen.
// - in eigenes Verzeichnis setzen.
// - log file, nicht nur cout.
// - emacs mode // - emacs mode
// - test runner in perl. // - test runner in perl.
// - Version/Buildno. im Datum // - Version/Buildno. in Date
// - xml // - xml
// Remove rtl_tres_state from SAL! // Remove rtl_tres_state from SAL!
...@@ -260,7 +255,7 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -260,7 +255,7 @@ int _cdecl main( int argc, char* argv[] )
// What is a good test? // What is a good test?
// init your data // init your data
// ASSERT( check if a generated result is what you expect ) // ASSERT( check if a generated result is, what you expect )
// //
// that's all // that's all
// really all, no // really all, no
...@@ -304,3 +299,8 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -304,3 +299,8 @@ int _cdecl main( int argc, char* argv[] )
// get info what works, what not. // get info what works, what not.
// By a human readable line by line info. // By a human readable line by line info.
// http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?automated+testing
// http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?fault-based+testing
// http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?confidence+test
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: versioner.cxx,v $ * $RCSfile: versioner.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: lla $ $Date: 2003-01-20 11:10:27 $ * last change: $Author: lla $ $Date: 2003-01-28 10:13:33 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
#include "versionhelper.hxx" #include "versionhelper.hxx"
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <iostream> #include <iostream>
// ----------------------------------- Main ----------------------------------- // ----------------------------------- Main -----------------------------------
...@@ -92,7 +91,8 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -92,7 +91,8 @@ int _cdecl main( int argc, char* argv[] )
if (opt.getParams().empty()) if (opt.getParams().empty())
{ {
std::cerr << "error: At least a library should given." << std::endl; // std::cerr << "error: At least a library should given." << std::endl;
fprintf(stderr, "error: At least a library should given.\n");
opt.showUsage(); opt.showUsage();
exit(0); exit(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment