Merge pull request #3630 from cesanta/nozutest

mdash/mingw does not support %zu
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2026-07-09 12:02:46 -03:00
commit 6709c028aa
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -340,7 +340,7 @@ jobs:
fail-fast: false fail-fast: false
max-parallel: 1 # no parallel runs, to minimize MQTT errors max-parallel: 1 # no parallel runs, to minimize MQTT errors
matrix: matrix:
target: [vc98, vc17, vc22, mingw, mingw++] target: [vc98, vc17, vc22, mingw, mingw++] # current mdash/mingw image compiler does not have support for %zu; test disabled below
ssl: ["", BUILTIN] ssl: ["", BUILTIN]
select: [-DMG_ENABLE_POLL=0, -DMG_ENABLE_POLL=1] select: [-DMG_ENABLE_POLL=0, -DMG_ENABLE_POLL=1]
exclude: exclude:
@@ -356,7 +356,7 @@ jobs:
- uses: webfactory/ssh-agent@v0.10.0 - uses: webfactory/ssh-agent@v0.10.0
with: with:
ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }} ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
- run: ./test/setup_mqtt_server.sh && make -C test ${{ matrix.target }} > log - run: if [ "${{ matrix.target }}" == "mingw" ]; then export TFLAGS="$TFLAGS -DNO_ZU_TEST"; fi && ./test/setup_mqtt_server.sh && make -C test ${{ matrix.target }} > log
- if: success() || failure() - if: success() || failure()
run: | run: |
cat log cat log
+2 -2
View File
@@ -2321,8 +2321,8 @@ static void test_str(void) {
ASSERT(chkdbl(mg_str("123e-3"), 0.123)); ASSERT(chkdbl(mg_str("123e-3"), 0.123));
} }
#if defined(_MSC_VER) && _MSC_VER < 1700 #if defined(NO_ZU_TEST) || (defined(_MSC_VER) && _MSC_VER < 1700)
// VC98 does not have '%zu' // VC98 does not have '%zu', some old compilers may also not support it
#else #else
ASSERT(sn("%zu", 0)); ASSERT(sn("%zu", 0));
ASSERT(sn("%zu", -1)); ASSERT(sn("%zu", -1));