diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-12-17 15:56:05 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:50 +0200 |
commit | 398e96f2110e22262124b3de2a0cbef618bc7a69 (patch) | |
tree | 49f7bc890f40d243a660af9e5a569d5cdc2881a5 /kabc/vcardparser/testread2.cpp | |
parent | 90e7e48e1032ee8535b378fc70959a0bd68e1ee6 (diff) | |
download | tdelibs-398e96f2110e22262124b3de2a0cbef618bc7a69.tar.gz tdelibs-398e96f2110e22262124b3de2a0cbef618bc7a69.zip |
tdeabc: update the tests for vcardparser to run them in a new way
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 64b2c5281731cc114ea225a2fd37db35be03ecb4)
Diffstat (limited to 'kabc/vcardparser/testread2.cpp')
-rw-r--r-- | kabc/vcardparser/testread2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kabc/vcardparser/testread2.cpp b/kabc/vcardparser/testread2.cpp index 085cb52bf..66e92df16 100644 --- a/kabc/vcardparser/testread2.cpp +++ b/kabc/vcardparser/testread2.cpp @@ -8,6 +8,7 @@ using namespace KABC; int main() { + int rc=0; Addressee::List l = vCardsAsAddresseeList(); TQString vcards = vCardsAsText(); @@ -17,6 +18,7 @@ main() if ( l.size() != parsed.size() ) { kdDebug()<<"\tSize - FAILED : "<<l.size()<<" vs. parsed "<<parsed.size()<<endl; + rc=1; } else { kdDebug()<<"\tSize - PASSED"<<endl; } @@ -39,6 +41,9 @@ main() kdDebug()<<">>>>>>>Addressee from file<<<<<<<<"<<endl; (*itr2).dump(); //kdDebug()<<"\t\t"<< (*itr1).fullEmail() << " VS. " << (*itr2).fullEmail()<<endl; + rc=1; } } + + return rc; } |