Skip to content

Commit 448d98e

Browse files
committed
Merge branch 'develop'
2 parents 9a45e02 + bf8ca46 commit 448d98e

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,22 @@ jobs:
439439

440440
- name: Setup ICU
441441
shell: pwsh
442-
run: 'Add-Content $Env:BOOST_ROOT/project-config.jam "path-constant ICU_PATH : `"$($pwd.Path)\ICU`" ;"'
442+
run: |
443+
$icuPath = (Join-Path $pwd "ICU") -replace '\\', '/'
444+
445+
if (-not (Test-Path $icuPath)) {
446+
Write-Error "ICU directory not found at $icuPath"
447+
exit 1
448+
}
449+
450+
Get-ChildItem $icuPath | ForEach-Object { Write-Host " $_" }
451+
Write-Host ""
452+
453+
$jamPath = Join-Path $env:BOOST_ROOT "project-config.jam"
454+
Add-Content $jamPath "path-constant ICU_PATH : `"$icuPath`" ;"
455+
456+
Write-Host "Contents of project-config.jam:"
457+
Get-Content $jamPath | ForEach-Object { Write-Host " $_" }
443458
444459
- name: Run tests (WinAPI, without coverage)
445460
if: '!matrix.coverage'
@@ -478,8 +493,12 @@ jobs:
478493
- name: Show config before collecting coverage
479494
if: matrix.coverage
480495
run: |
496+
type %BOOST_ROOT%\project-config.jam
481497
set B2_TARGETS=libs/%SELF%/test//show_config --verbose-test
482-
ci\build.bat
498+
set B2_FLAGS=--debug-configuration
499+
ci\build.bat || exit /b 1
500+
echo Config log:
501+
type %BOOST_ROOT%/bin.v2/config.log
483502
env:
484503
B2_TOOLSET: ${{matrix.toolset}}
485504
B2_CXXSTD: ${{matrix.cxxstd}}

test/show_config.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const char* env(const char* s)
4040
# pragma warning(pop)
4141
#endif
4242
if(r)
43-
return r;
44-
return "";
43+
return r; // LCOV_EXCL_LINE
44+
return ""; // LCOV_EXCL_LINE
4545
}
4646

4747
void check_locales(const std::vector<const char*>& names)
@@ -59,12 +59,18 @@ void check_locales(const std::vector<const char*>& names)
5959

6060
void test_main(int /*argc*/, char** /*argv*/)
6161
{
62-
std::cerr << "- char8_t: ";
62+
std::cerr << "- Character support: ";
63+
std::cerr << (sizeof(wchar_t) * 8) << "bit-wchar_t ";
6364
#ifdef __cpp_char8_t
64-
std::cerr << "yes\n";
65-
#else
66-
std::cerr << "no\n";
65+
std::cerr << "char8_t ";
66+
#endif
67+
#ifdef BOOST_LOCALE_ENABLE_CHAR16_T
68+
std::cerr << "char16_t ";
6769
#endif
70+
#ifdef BOOST_LOCALE_ENABLE_CHAR32_T
71+
std::cerr << "char32_t ";
72+
#endif
73+
std::cerr << std::endl;
6874
std::cerr << "- std::basic_string<char8_t>: ";
6975
#ifdef __cpp_lib_char8_t
7076
std::cerr << "yes\n";
@@ -90,6 +96,7 @@ void test_main(int /*argc*/, char** /*argv*/)
9096
#else
9197
std::cerr << "- Without iconv\n";
9298
#endif
99+
93100
std::cerr << "- Environment \n";
94101
std::cerr << " LANG=" << env("LANG") << std::endl;
95102
std::cerr << " LC_ALL=" << env("LC_ALL") << std::endl;

test/test_encoding.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ struct utfutf<wchar_t, 4> {
341341
if(iConvUsesWTF8()) {
342342
static char buf[16] = "\x67\x72\xF9\x80\x80\x80\x80"
343343
"üßen";
344-
return buf;
344+
return buf; // LCOV_EXCL_LINE
345345
} else {
346346
return utfutf<char>::ok();
347347
}
@@ -464,8 +464,8 @@ void test_utf_for()
464464
if(iConvUsesWTF8() && utfutf<Char>::bad_decoded_to_utf8() != utfutf<char>::ok()) {
465465
// Run just this one test, as there won't be an error reported so the "stop" tests will fail.
466466
// Other backends might do it correctly but we can't pass multiple expected results here.
467-
TEST_EQ(boost::locale::conv::from_utf<Char>(utfutf<Char>::bad(), "UTF-8"),
468-
utfutf<Char>::bad_decoded_to_utf8());
467+
TEST_EQ(boost::locale::conv::from_utf<Char>(utfutf<Char>::bad(), "UTF-8"), // LCOV_EXCL_LINE
468+
utfutf<Char>::bad_decoded_to_utf8()); // LCOV_EXCL_LINE
469469
} else
470470
test_error_from_utf<Char>(utfutf<Char>::bad(), utfutf<Char>::bad_decoded_to_utf8(), "UTF-8");
471471
std::cout << "-- Error for decoding to Latin1" << std::endl;
@@ -476,7 +476,7 @@ void test_utf_for()
476476
std::string expected = utfutf<Char>::bad_char_decoded_to_utf8();
477477
expected += expected; // 2 bad chars
478478
if(iConvUsesWTF8() && utfutf<Char>::bad_decoded_to_utf8() != utfutf<char>::ok())
479-
TEST_EQ(boost::locale::conv::from_utf<Char>(onlyInvalidUtf, "UTF-8"), expected);
479+
TEST_EQ(boost::locale::conv::from_utf<Char>(onlyInvalidUtf, "UTF-8"), expected); // LCOV_EXCL_LINE
480480
else
481481
test_error_from_utf<Char>(onlyInvalidUtf, expected, "UTF-8");
482482
std::cout << "-- Error decoding string of only invalid chars to Latin1" << std::endl;

0 commit comments

Comments
 (0)