Files
rtorrent/test/src/test_command_dynamic.h
T
xirvik 7916e6022f Stop the value command on the untrusted-safe allowlist crashing the daemon
glibc leaves endptr unset for a small invalid base; ERANGE throws instead of clamping.
2026-09-20 15:58:47 +02:00

29 lines
598 B
C++

#include "test/helpers/test_fixture.h"
#include "test/helpers/test_main_thread.h"
class TestCommandDynamic : public test_fixture {
CPPUNIT_TEST_SUITE(TestCommandDynamic);
CPPUNIT_TEST(test_basics);
CPPUNIT_TEST(test_get_set);
CPPUNIT_TEST(test_old_style);
CPPUNIT_TEST(test_insert_list);
CPPUNIT_TEST(test_value_base);
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
void test_basics();
void test_get_set();
void test_old_style();
void test_insert_list();
void test_value_base();
private:
std::unique_ptr<TestMainThread> m_test_main_thread;
};