• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Tatsh / dbeaver-creds / 25095937950 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 07:19AM UTC
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Apr 2026 07:17AM UTC coverage: 77.143%. Remained the same
25095937950.3

push

github

Tatsh
tests: append per-call counter to Windows tempdir name

`unique_root()` on Windows used `%TEMP%/dbc_test_<PID>` (and the
parallel `dbc_mock_<PID>` in `test_api_mock.c`). The PID is the same
for every `setup()` invocation within a test executable, so the
first test's `CreateDirectoryA` succeeded and every subsequent
`setup()` failed with ERROR_ALREADY_EXISTS. cmocka treats setup
failure as a fatal error, which is why MSYS2 runs showed every
test after `test_returns_decrypted_json` aborting without an
`[       OK ]` marker.

The POSIX path uses `mkdtemp` with `XXXXXX`, which generates a
fresh suffix per call, so this never showed up on Linux/macOS.

Add a `static unsigned long counter = 0;` per-function and append
`_<counter>` to the directory name. Increments per `setup()` call
within the same process, restoring the "fresh tempdir per test"
invariant on Windows.

Signed-off-by: Andrew Udvare <audvare@gmail.com>

81 of 105 relevant lines covered (77.14%)

3.75 hits per line

Source Files on job native-Linux - 25095937950.3
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25095937950
  • dbec824a on github
  • Prev Job for on master (#25095780584.2)
  • Next Job for on master (#25096108490.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc