diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-01 15:34:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-01 15:35:21 +0100 |
commit | 3954b6603354bcd4f3f15ba7feb18e1b7801558b (patch) | |
tree | 737f172d15e69e1e7ee5fb87c7e06939371ab1c3 | |
parent | 542c93d10d56bef6c9d10ef35c62163b91537a8f (diff) |
spit out timing info
-rw-r--r-- | test/inc/test/filters-test.hxx | 3 | ||||
-rw-r--r-- | test/source/filters-test.cxx | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/test/inc/test/filters-test.hxx b/test/inc/test/filters-test.hxx index 6c82944d1cac..ab83c55e8f10 100644 --- a/test/inc/test/filters-test.hxx +++ b/test/inc/test/filters-test.hxx @@ -42,8 +42,7 @@ enum filterStatus /* * NOTE, any files beginning with CVE- will be assumed to be encrypted using - * arcfour with key 0x435645, this is just to silence panicky - * virus/malware-checkers + * arcfour with key 0x435645, this is to silence panicky virus/malware-checkers * * e.g. m[de]crypt --bare -a arcfour -o hex -k 435645 -s 3 */ diff --git a/test/source/filters-test.cxx b/test/source/filters-test.cxx index f80fd43aba09..1cb085dc4afc 100644 --- a/test/source/filters-test.cxx +++ b/test/source/filters-test.cxx @@ -113,8 +113,7 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin //output name early, so in the case of a hang, the name of //the hanging input file is visible - if (nExpected == test::indeterminate) - fprintf(stderr, "%s,", aRes.getStr()); + fprintf(stderr, "%s,", aRes.getStr()); sal_uInt32 nStartTime = osl_getGlobalTimer(); bool bRes = load(rFilter, sURL, rUserData); sal_uInt32 nEndTime = osl_getGlobalTimer(); @@ -122,12 +121,10 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin if (bCVE) CPPUNIT_ASSERT(osl::FileBase::E_None == osl::File::remove(sTmpFile)); + fprintf(stderr, "%s,%"SAL_PRIuUINT32"\n", + bRes?"Pass":"Fail",nEndTime-nStartTime); if (nExpected == test::indeterminate) - { - fprintf(stderr, "%s,%"SAL_PRIuUINT32"\n", - bRes?"Pass":"Fail",nEndTime-nStartTime); continue; - } CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == nExpected); } } |