From: Ronen Friedman Date: Tue, 7 May 2024 13:07:21 +0000 (+0300) Subject: tests/rgw: fix ints returned where a string is expected X-Git-Tag: testing/wip-pdonnell-testing-20240508.183908-debug~12^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9cb55faa59cd4f1d374d64b3ed11387d8d86a139;p=ceph-ci.git tests/rgw: fix ints returned where a string is expected Modifying test_rgw_iam_policy.cc to avoid C++23 compilation errors. C++23 does not allow int-to-string conversions, and '0' cannot be returned where a string is expected. Signed-off-by: Ronen Friedman --- diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc index d31c7aa4295..7dadb7812ff 100644 --- a/src/test/rgw/test_rgw_iam_policy.cc +++ b/src/test/rgw/test_rgw_iam_policy.cc @@ -173,12 +173,12 @@ public: string get_acct_name() const override { abort(); - return 0; + return string{}; } string get_subuser() const override { abort(); - return 0; + return string{}; } const std::string& get_tenant() const override {