mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
ctest: Remove stray newline in process result string
The plain "Exit code" string had a newline that we do not have in the other result strings. This typo was inherited from KWSys Process, which has been fixed by its upstream. Fixes: #27119
This commit is contained in:
@@ -536,7 +536,7 @@ std::string cmProcess::GetExitExceptionString() const
|
||||
case STATUS_NO_MEMORY:
|
||||
default:
|
||||
char buf[1024];
|
||||
char const* fmt = "Exit code 0x%" KWIML_INT_PRIx64 "\n";
|
||||
char const* fmt = "Exit code 0x%" KWIML_INT_PRIx64;
|
||||
snprintf(buf, sizeof(buf), fmt, this->ExitValue);
|
||||
exception_str.assign(buf);
|
||||
}
|
||||
|
||||
@@ -564,7 +564,7 @@ cmUVProcessChain::Status::GetException() const
|
||||
case STATUS_NO_MEMORY:
|
||||
default: {
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), "Exit code 0x%x\n",
|
||||
snprintf(buf, sizeof(buf), "Exit code 0x%x",
|
||||
static_cast<unsigned int>(this->ExitStatus));
|
||||
return std::make_pair(ExceptionCode::Other, buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user