mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
fix: some errors are not returned in tr_sys_path_get_capacity() (#8258)
* fix: some errors are not returned in `tr_sys_path_get_capacity()`
* test: disable well-formed free_space tests
There are no reliable way to test them.
(cherry picked from commit 63d6d670fd)
This commit is contained in:
@@ -518,7 +518,7 @@ std::optional<tr_sys_path_capacity> tr_sys_path_get_capacity(std::string_view pa
|
||||
error = &local_error;
|
||||
}
|
||||
|
||||
auto const info = tr_sys_path_get_info(path, 0, &local_error);
|
||||
auto const info = tr_sys_path_get_info(path, 0, error);
|
||||
if (!info)
|
||||
{
|
||||
return {};
|
||||
|
||||
@@ -901,7 +901,7 @@ constexpr std::string_view WellFormedResponse = R"json({
|
||||
}
|
||||
})json";
|
||||
|
||||
TEST_F(RpcTest, wellFormedFreeSpace)
|
||||
TEST_F(RpcTest, DISABLED_wellFormedFreeSpace)
|
||||
{
|
||||
auto constexpr Input = WellFormedRequest;
|
||||
auto constexpr Expected = WellFormedResponse;
|
||||
@@ -929,7 +929,7 @@ constexpr std::string_view WellFormedLegacyResponse = R"json({
|
||||
|
||||
#undef RPC_NON_EXISTENT_PATH
|
||||
|
||||
TEST_F(RpcTest, wellFormedLegacyFreeSpace)
|
||||
TEST_F(RpcTest, DISABLED_wellFormedLegacyFreeSpace)
|
||||
{
|
||||
auto constexpr Input = WellFormedLegacyRequest;
|
||||
auto constexpr Expected = WellFormedLegacyResponse;
|
||||
|
||||
Reference in New Issue
Block a user