Skip to content

Commit c29ac28

Browse files
committed
test
1 parent c64bb01 commit c29ac28

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/CI-mingw.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
run: |
5353
export PATH="/mingw64/lib/ccache/bin:$PATH"
5454
# set RDYNAMIC to work around broken MinGW detection
55-
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 check
55+
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 cppcheck
56+
57+
#gdb --batch --eval-command=run --eval-command="bt 50" --return-child-result --args testrunner.exe TestLeakAutoVarRecursiveCountLimit
5658
env:
5759
LDFLAGS: -fuse-ld=lld # use lld for faster linking

lib/checkleakautovar.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ bool CheckLeakAutoVar::checkScope(const Token * const startToken,
295295
{
296296
#if ASAN
297297
static const nonneg int recursiveLimit = 300;
298+
#elif defined(__MINGW32__)
299+
// testrunner crashes with stack overflow in CI
300+
static const nonneg int recursiveLimit = 900;
298301
#else
299302
static const nonneg int recursiveLimit = 1000;
300303
#endif

0 commit comments

Comments
 (0)