mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Merge pull request #3630 from cesanta/nozutest
mdash/mingw does not support %zu
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -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:
|
||||||
@@ -349,14 +349,14 @@ jobs:
|
|||||||
name: windows ${{ matrix.target }} SSL=${{ matrix.ssl }} TFLAGS=${{ matrix.select }}
|
name: windows ${{ matrix.target }} SSL=${{ matrix.ssl }} TFLAGS=${{ matrix.select }}
|
||||||
env:
|
env:
|
||||||
SSL: ${{ matrix.ssl }}
|
SSL: ${{ matrix.ssl }}
|
||||||
TFLAGS: ${{ matrix.select }} -DMQTT_LOCALHOST -DNO_ABORT
|
TFLAGS: ${{ matrix.select }} -DMQTT_LOCALHOST -DNO_ABORT
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with: { fetch-depth: 2 }
|
with: { fetch-depth: 2 }
|
||||||
- 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
@@ -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));
|
||||||
|
|||||||
Reference in new issue
Block a user