[Pkg-owncloud-commits] [owncloud-client] 71/175: tests: Make them more verbose in case of failures

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6a7f2089e86f4956e2bf999918748eeec5e1a6bc
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed May 20 14:34:11 2015 +0200

    tests:  Make them more verbose in case of failures
---
 csync/tests/ownCloud/ownCloud/Test.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csync/tests/ownCloud/ownCloud/Test.pm b/csync/tests/ownCloud/ownCloud/Test.pm
index 6e755b0..5b24d0b 100644
--- a/csync/tests/ownCloud/ownCloud/Test.pm
+++ b/csync/tests/ownCloud/ownCloud/Test.pm
@@ -327,11 +327,11 @@ sub assertLocalDirs( $$ )
 
     opendir(my $dh, $dir1 ) || die;
     while(readdir $dh) {
-	assert( -e "$dir2/$_" );
+    assert( -e "$dir2/$_", " $dir2/$_  do not exist" );
         next if( -d "$dir1/$_"); # don't compare directory sizes.
 	my $s1 = -s "$dir1/$_";
 	my $s2 = -s "$dir2/$_";
-	assert( $s1 == $s2, "$dir1/$_ <-> $dir2/$_" );
+	assert( $s1 == $s2, "$dir1/$_ <-> $dir2/$_   size not equal ($s1 != $s2)" );
     }
     closedir $dh;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list