Skip to content

Commit 76815b5

Browse files
committed
try to pass unit test
1 parent c0449a0 commit 76815b5

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
strategy:
2222
matrix:
2323
os:
24-
- "macos-latest"
2524
- "macos-14"
25+
- "macos-15"
2626
- "ubuntu-20.04"
2727
- "ubuntu-22.04"
2828
- "ubuntu-24.04"
@@ -40,11 +40,11 @@ jobs:
4040
shell: "bash"
4141
run: "npm install -g @go-task/cli"
4242

43-
- if: "matrix.os == 'macos-latest'"
43+
- if: "matrix.os == 'macos-14' || matrix.os == 'macos-15'"
4444
name: "Install coreutils (for md5sum)"
4545
run: "brew install coreutils"
4646

47-
- if: "matrix.os == 'macos-latest'"
47+
- if: "matrix.os == 'macos-14' || matrix.os == 'macos-15'"
4848
name: "Install clang-16 (for c++20)"
4949
run: |-
5050
brew install llvm@16

src/ystdlib/error_handling/test-TraceableException.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ class Worker {
2222
}
2323

2424
static auto execute_with_failure() -> void {
25-
throw OperationFailed(
26-
BinaryErrorCode{BinaryErrorCodeEnum::Failure},
27-
cCustomFailureDescription.data()
28-
);
25+
// clang-format off
26+
throw OperationFailed(BinaryErrorCode{BinaryErrorCodeEnum::Failure}, cCustomFailureDescription.data());
27+
// clang-format on
2928
}
3029

3130
static auto execute_with_invalid_args() -> void {
@@ -48,8 +47,8 @@ constexpr std::string_view cExecuteWithInvalidArgsFunctionName{
4847
};
4948
constexpr std::string_view cInvalidArgsErrorMsg{"Invalid argument"};
5049
constexpr auto cExecuteWithSuccessLineNumber{21};
51-
constexpr auto cExecuteWithFailureLineNumber{28};
52-
constexpr auto cExecuteWithInvalidArgsLineNumber{32};
50+
constexpr auto cExecuteWithFailureLineNumber{26};
51+
constexpr auto cExecuteWithInvalidArgsLineNumber{31};
5352

5453
#ifdef SOURCE_PATH_SIZE
5554
constexpr auto cRelativePathFileName{std::string_view{__FILE__}.substr(SOURCE_PATH_SIZE)};

0 commit comments

Comments
 (0)