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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/tests
From:       David Faure <faure () kde ! org>
Date:       2009-09-18 18:30:22
Message-ID: 1253298622.793873.15949.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1025433 by dfaure:

Rumours say kWarning doesn't work. Works here. Well, into a file, for the unittest.


 M  +3 -1      kdebug_unittest.cpp  


--- trunk/KDE/kdelibs/kdecore/tests/kdebug_unittest.cpp #1025432:1025433
@@ -38,11 +38,11 @@
 
     // Now set up logging to file
     KConfig config("kdebugrc");
-    //config.group("0").writeEntry("InfoOutput", 0 /*FileOutput*/);
     config.group("180").writeEntry("InfoOutput", 0 /*FileOutput*/);
     config.group("myarea").writeEntry("InfoOutput", 0 /*FileOutput*/);
     config.group("myarea").writeEntry("InfoFilename", "myarea.dbg");
     config.group("qttest").writeEntry("InfoOutput", 0 /*FileOutput*/);
+    config.group("qttest").writeEntry("WarnOutput", 0 /*FileOutput*/);
     config.sync();
 
     kClearDebugConfig();
@@ -111,6 +111,7 @@
 {
     kDebug(180) << "TEST DEBUG 180";
     kDebug(0) << "TEST DEBUG 0";
+    kWarning() << "TEST WARNING 0";
     // The calls to kDebug(0) created a dynamic debug area named after the componentdata name
     KConfig config("kdebugrc");
     QVERIFY(config.hasGroup("qttest"));
@@ -121,6 +122,7 @@
     QList<QByteArray> expected;
     expected << "/kdecore (kdelibs) KDebugTest::testDebugToFile: TEST DEBUG 180\n";
     expected << "KDebugTest::testDebugToFile: TEST DEBUG 0\n";
+    expected << "KDebugTest::testDebugToFile: TEST WARNING 0\n";
     expected << "KDebugTest::testDebugToFile: TEST DEBUG with newline\n";
     expected << "newline\n";
     expected << "/kdecore (kdelibs) TestClass::getSomething: Nested kDebug call\n";
[prev in list] [next in list] [prev in thread] [next in thread] 

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