[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/kunittest
From:       Jeroen Wijnhout <wijnhout () science ! uva ! nl>
Date:       2005-07-05 18:54:05
Message-ID: 1120589645.325897.14824.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 431966 by wijnhout:

* Less console output pollution: Make the debug capturing optional.
* Don't let "make check" fail.



 M  +0 -1      example/simple/maingui.cpp  
 M  +0 -5      example/simple/sampletest.cpp  
 M  +2 -1      guimodrunner.cpp  
 M  +1 -1      kunittestmod  


--- trunk/KDE/kdesdk/kunittest/example/simple/maingui.cpp #431965:431966
@@ -43,7 +43,6 @@
 
 int main( int argc, char** argv )
 {
-        
     KAboutData about("SampleTests", I18N_NOOP("SampleTests"), version, description,
                      KAboutData::License_BSD, "(C) 2005 Jeroen Wijnhout", 0, 0,
                      "Jeroen.Wijnhout@kdemail.net");
--- trunk/KDE/kdesdk/kunittest/example/simple/sampletest.cpp #431965:431966
@@ -41,10 +41,6 @@
     kdDebug() << "Debug output belonging to SimpleSampleTester." << endl;
     CHECK( QString("SimpleSample") , QString("SimpleSample") );
 
-    XFAIL( "SimpleSample" , "SampleSimple" );
-
-    kdDebug() << "Do some math." << endl;
-    XFAIL( 2*2 , 5 );
     SKIP("Just curious how this 'skipping' works.");
 }
 
@@ -59,5 +55,4 @@
     // compile error, since QStringList::count returns
     // an unsigned int and CHECK is based on a template.
     CHECK( testList.count() , 2u );
-    //CHECK( testList.count() , 1u );
 }
--- trunk/KDE/kdesdk/kunittest/guimodrunner.cpp #431965:431966
@@ -42,7 +42,7 @@
 {
     {"query [regexp]", I18N_NOOP("Only run modules which filename match the \
                regexp."), "^kunittest_.*\\.la$"},
     {"folder [folder]", I18N_NOOP("Only run tests modules which are found in the \
                folder. Use the query option to select modules."), "."},
-//    { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
+    { "enable-dbgcap", I18N_NOOP("Enables debug capturing. You typically use this \
option when you use the GUI."), 0},  KCmdLineLastOption
 };
 
@@ -60,6 +60,7 @@
     KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
 
     KUnitTest::Runner::loadModules(args->getOption("folder"), \
args->getOption("query")); +    \
KUnitTest::Runner::setDebugCapturingEnabled(args->isSet("enable-dbgcap"));  
     KApplication app;
 
--- trunk/KDE/kdesdk/kunittest/kunittestmod #431965:431966
@@ -34,4 +34,4 @@
 fi
 
 DCOPNAME="KUnitTestModRunner"
-$APP $FOLDER $QUERY 2>&1 | perl $DEBUGHELPER "$DCOPNAME-*"
+$APP --enable-dbgcap $FOLDER $QUERY 2>&1 | perl $DEBUGHELPER "$DCOPNAME-*"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic