[Base] Removed useless path_to_utf8 conversion while using fmt
Default filesystem::path formatter was added to fmt around 2022
This commit is contained in:
@@ -68,13 +68,11 @@ class TestSuite {
|
||||
|
||||
bool Load() {
|
||||
if (!ReadMap()) {
|
||||
XELOGE("Unable to read map for test {}",
|
||||
xe::path_to_utf8(src_file_path_));
|
||||
XELOGE("Unable to read map for test {}", src_file_path_);
|
||||
return false;
|
||||
}
|
||||
if (!ReadAnnotations()) {
|
||||
XELOGE("Unable to read annotations for test {}",
|
||||
xe::path_to_utf8(src_file_path_));
|
||||
XELOGE("Unable to read annotations for test {}", src_file_path_);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -152,7 +150,7 @@ class TestSuite {
|
||||
current_test_case = FindTestCase(label);
|
||||
if (!current_test_case) {
|
||||
XELOGE("Test case {} not found in corresponding map for {}", label,
|
||||
xe::path_to_utf8(src_file_path_));
|
||||
src_file_path_);
|
||||
return false;
|
||||
}
|
||||
} else if (strlen(start) > 3 && start[0] == '#' && start[1] == '_') {
|
||||
@@ -167,8 +165,7 @@ class TestSuite {
|
||||
value.erase(value.end() - 1);
|
||||
}
|
||||
if (!current_test_case) {
|
||||
XELOGE("Annotation outside of test case in {}",
|
||||
xe::path_to_utf8(src_file_path_));
|
||||
XELOGE("Annotation outside of test case in {}", src_file_path_);
|
||||
return false;
|
||||
}
|
||||
current_test_case->annotations.emplace_back(key, value);
|
||||
@@ -221,8 +218,7 @@ class TestRunner {
|
||||
// Load the binary module.
|
||||
auto module = std::make_unique<xe::cpu::RawModule>(processor_.get());
|
||||
if (!module->LoadFile(START_ADDRESS, suite.bin_file_path())) {
|
||||
XELOGE("Unable to load test binary {}",
|
||||
xe::path_to_utf8(suite.bin_file_path()));
|
||||
XELOGE("Unable to load test binary {}", suite.bin_file_path());
|
||||
return false;
|
||||
}
|
||||
processor_->AddModule(std::move(module));
|
||||
@@ -449,7 +445,7 @@ bool RunTests(const std::string_view test_name) {
|
||||
continue;
|
||||
}
|
||||
if (!test_suite.Load()) {
|
||||
XELOGE("TEST SUITE {} FAILED TO LOAD", xe::path_to_utf8(test_path));
|
||||
XELOGE("TEST SUITE {} FAILED TO LOAD", test_path);
|
||||
load_failed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user