mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-05 05:39:22 +00:00
a5c39566c8
Also make directory_entry::is_file() report the real type so symlinks are skipped.
26 lines
584 B
C++
26 lines
584 B
C++
#include "test/helpers/test_fixture.h"
|
|
|
|
#include <string>
|
|
|
|
class TestSessionStorer : public test_fixture {
|
|
CPPUNIT_TEST_SUITE(TestSessionStorer);
|
|
|
|
CPPUNIT_TEST(test_temp_file_symlink_is_not_followed);
|
|
CPPUNIT_TEST(test_saved_files_are_owner_only);
|
|
CPPUNIT_TEST(test_symlinked_entry_is_not_a_file);
|
|
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
public:
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
void test_temp_file_symlink_is_not_followed();
|
|
void test_saved_files_are_owner_only();
|
|
void test_symlinked_entry_is_not_a_file();
|
|
|
|
private:
|
|
std::string m_temp_dir;
|
|
std::string m_session_dir;
|
|
};
|