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:48:49 +0100
commit5465c1f100334860202f6f3408ccd43df8d3002c (patch)
tree69a06fb3e8c92b10d5a90c5243e6f48a564afdef /tdeabc/vcardparser/testread2.cpp
parent1341c26a7a60d5260da37a278a79148a09ef21e9 (diff)
downloadtdelibs-5465c1f100334860202f6f3408ccd43df8d3002c.tar.gz
tdelibs-5465c1f100334860202f6f3408ccd43df8d3002c.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 '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;
}