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

Tatsh / dbeaver-creds / 25095937950
100%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 07:17AM UTC
Jobs 3
Files 4
Run time 1min
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: 87.342%. Remained the same
25095937950

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>

138 of 158 relevant lines covered (87.34%)

5.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 native-macOS - 25095937950.1 29 Apr 2026 07:18AM UTC 2
78.85
GitHub Action Run
2 pwsh - 25095937950.2 29 Apr 2026 07:17AM UTC 1
100.0
GitHub Action Run
3 native-Linux - 25095937950.3 29 Apr 2026 07:18AM UTC 2
77.14
GitHub Action Run
Source Files on build 25095937950
  • Tree
  • List 4
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25095937950
  • dbec824a on github
  • Prev Build on master (#25095780584)
  • Next Build on master (#25096108490)
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