Merge pull request #3630 from cesanta/nozutest

mdash/mingw does not support %zu
This commit is contained in:
Sergio R. Caprile
2026-07-09 12:02:46 -03:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -340,7 +340,7 @@ jobs:
fail-fast: false
max-parallel: 1 # no parallel runs, to minimize MQTT errors
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]
select: [-DMG_ENABLE_POLL=0, -DMG_ENABLE_POLL=1]
exclude:
@@ -349,14 +349,14 @@ jobs:
name: windows ${{ matrix.target }} SSL=${{ matrix.ssl }} TFLAGS=${{ matrix.select }}
env:
SSL: ${{ matrix.ssl }}
TFLAGS: ${{ matrix.select }} -DMQTT_LOCALHOST -DNO_ABORT
TFLAGS: ${{ matrix.select }} -DMQTT_LOCALHOST -DNO_ABORT
steps:
- uses: actions/checkout@v5
with: { fetch-depth: 2 }
- uses: webfactory/ssh-agent@v0.10.0
with:
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()
run: |
cat log
+2 -2
View File
@@ -2321,8 +2321,8 @@ static void test_str(void) {
ASSERT(chkdbl(mg_str("123e-3"), 0.123));
}
#if defined(_MSC_VER) && _MSC_VER < 1700
// VC98 does not have '%zu'
#if defined(NO_ZU_TEST) || (defined(_MSC_VER) && _MSC_VER < 1700)
// VC98 does not have '%zu', some old compilers may also not support it
#else
ASSERT(sn("%zu", 0));
ASSERT(sn("%zu", -1));