1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

test: Print a heartbeat file (every 20s) in the runner.

This commit is contained in:
Petr Rockai 2014-06-27 23:18:14 +02:00
parent e8cc9254e0
commit 3fbea6029d

View File

@ -188,6 +188,15 @@ struct TestCase {
io.sync();
/* heartbeat */
if ( time( 0 ) % 20 == 0 ) {
std::string stampfile( options.outdir + "/timestamp" );
std::ofstream stamp( stampfile.c_str() );
stamp << time( 0 );
stamp.close();
fsync_name( stampfile );
}
return true;
}