Skip to content

Commit

Permalink
DEBUG: make IcuTestErrorCode not copyable ...
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert committed Dec 30, 2024
1 parent 0680906 commit d8b4731
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion icu4c/source/test/intltest/listformattertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ void ListFormatterTest::DoTheRealListStyleTesting(
UListFormatterType type,
UListFormatterWidth width,
const char* expected,
IcuTestErrorCode status) {
IcuTestErrorCode& status) {

LocalPointer<ListFormatter> formatter(
ListFormatter::createInstance(locale, type, width, status));
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/intltest/listformattertest.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class ListFormatterTest : public IntlTestWithFieldPosition {
UListFormatterType type,
UListFormatterWidth width,
const char* expected,
IcuTestErrorCode status);
IcuTestErrorCode& status);

private:
// Reused test data.
Expand Down
3 changes: 3 additions & 0 deletions icu4c/source/tools/ctestfw/unicode/testlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class T_CTEST_EXPORT_API TestLog {

class T_CTEST_EXPORT_API IcuTestErrorCode {
public:
IcuTestErrorCode(const IcuTestErrorCode&) = delete;
IcuTestErrorCode& operator=(const IcuTestErrorCode&) = delete;

IcuTestErrorCode(TestLog &callingTestClass, const char *callingTestName)
: errorCode(U_ZERO_ERROR),
testClass(callingTestClass), testName(callingTestName)
Expand Down

0 comments on commit d8b4731

Please sign in to comment.