You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2021/02/19 18:53:18 UTC
svn commit: r1886700 -
/subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Author: kotkov
Date: Fri Feb 19 18:53:17 2021
New Revision: 1886700
URL: http://svn.apache.org/viewvc?rev=1886700&view=rev
Log:
Following up on r1886695, ensure that we will notice an unexpected timestamp
change in test_install_stream_get_info(), if it happens.
* subversion/tests/libsvn_subr/io-test.c
(test_install_stream_get_info): Wait for timestamps between retrieving the
info on the install stream and installing it.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/io-test.c?rev=1886700&r1=1886699&r2=1886700&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/io-test.c Fri Feb 19 18:53:17 2021
@@ -1140,6 +1140,8 @@ test_install_stream_get_info(apr_pool_t
SVN_ERR(svn_stream_puts(stream, "stream1 content"));
SVN_ERR(svn_stream_close(stream));
SVN_ERR(svn_stream__install_get_info(&mtime, &size, stream, pool));
+ /* Ensure that we will notice a timestamp change, if it happens. */
+ svn_io_sleep_for_timestamps(NULL, pool);
SVN_ERR(svn_stream__install_stream(stream,
final_abspath,
TRUE,