• src/doors/syncretro/test_binds.c test_games.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, July 24, 2026 11:06:27
    https://gitlab.synchro.net/main/sbbs/-/commit/b77dab307bc17fc5957ed79e
    Modified Files:
    src/doors/syncretro/test_binds.c test_games.c
    Log Message:
    syncretro: give test_binds/test_games their own fixture dirs

    Both tests wrote, read and removed a games.ini fixture in the
    process cwd. Neither add_test() set a WORKING_DIRECTORY, so under
    serial ctest they never collided, but ctest -j (or any future
    parallel runner) would race one test's fopen(..., "w")/remove()
    against the other's read.

    Give each test its own fixture directory instead of sharing the
    cwd: test_games.c now writes to gamesfx/games.ini, test_binds.c to bindsfx/games.ini, both created with xpdev's mkpath() so this stays
    portable to MSVC. The nonexistent-directory assertions in
    test_games.c are left untouched, since they still exercise a path
    that does not exist.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net