From cef5d2ade12ca260747d5c097406d20d8dc814e3 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Tue, 27 Mar 2012 16:40:59 +0200 Subject: [PATCH] tests: Use correct value from perl stat call to get the file mtime. --- tests/ownCloud/t1.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ownCloud/t1.pl b/tests/ownCloud/t1.pl index 15b17bfef7..476fe98d90 100755 --- a/tests/ownCloud/t1.pl +++ b/tests/ownCloud/t1.pl @@ -147,8 +147,8 @@ sub assertLocalAndRemoteDir( $$$ ) # check for equal mod times my $remoteModTime = $res->get_property( "lastmodifiedepoch" ) ; my @info = stat( "$local/$filename" ); - my $localModTime = $info[8]; - assert( $remoteModTime == $localModTime, "Modfied-Times differ: $remoteModTime <-> $localModTime" ); + my $localModTime = $info[9]; + assert( $remoteModTime == $localModTime, "Modfied-Times differ: remote: $remoteModTime <-> local: $localModTime" ); # check for the same file size my $localSize = $info[7]; @@ -237,4 +237,4 @@ remoteCleanup( $d, $remoteDir ); localCleanup( $localDir ); -# end. \ No newline at end of file +# end.