mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
83a5e7687b
Syncing the files alone does not make the new names survive a crash.
25 lines
540 B
C++
25 lines
540 B
C++
#include "test/helpers/test_fixture.h"
|
|
|
|
#include <string>
|
|
|
|
class TestSessionCommit : public test_fixture {
|
|
CPPUNIT_TEST_SUITE(TestSessionCommit);
|
|
|
|
CPPUNIT_TEST(test_commit_publishes_all_three_files);
|
|
CPPUNIT_TEST(test_commit_with_fsync_publishes_all_three_files);
|
|
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
public:
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
void test_commit_publishes_all_three_files();
|
|
void test_commit_with_fsync_publishes_all_three_files();
|
|
|
|
private:
|
|
void commit_and_verify(bool use_fsyncdisk);
|
|
|
|
std::string m_session_dir;
|
|
};
|