Fix shared library tests for Windows (#1074)

Add copying of shared library to the output directory with a test binary.

[binary] removed using of non unsigned char as argument at
'std::isspace' function that was provokes undefined behavior.

[.github/workflows/build.yml] enabled run of test at the
'windows-latest' environment.
This commit is contained in:
TheVice
2021-12-15 21:38:09 +02:00
committed by GitHub
parent 974349d015
commit d8d9419092
3 changed files with 9 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ std::vector<unsigned char> DecodeBase64(const std::string &input) {
unsigned value = 0;
for (std::size_t i = 0, cnt = 0; i < input.size(); i++) {
if (std::isspace(input[i])) {
if (std::isspace(static_cast<unsigned char>(input[i]))) {
// skip newlines
continue;
}