summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcardparser/testread2.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-12-17 15:56:05 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-01-29 02:27:15 +0100
commit64b2c5281731cc114ea225a2fd37db35be03ecb4 (patch)
tree974061925e677709551c4f2e22bf58d86a7d486f /tdeabc/vcardparser/testread2.cpp
parent37c9f23df53b67e562b72e747fc3a7a5514e8b9a (diff)
downloadtdelibs-64b2c5281731cc114ea225a2fd37db35be03ecb4.tar.gz
tdelibs-64b2c5281731cc114ea225a2fd37db35be03ecb4.zip
tdeabc: update the tests for vcardparser to run them in a new way
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdeabc/vcardparser/testread2.cpp')
-rw-r--r--tdeabc/vcardparser/testread2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdeabc/vcardparser/testread2.cpp b/tdeabc/vcardparser/testread2.cpp
index 8bc7c8863..153530da0 100644
--- a/tdeabc/vcardparser/testread2.cpp
+++ b/tdeabc/vcardparser/testread2.cpp
@@ -8,6 +8,7 @@ using namespace TDEABC;
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;
}