mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
test: size hook log temp buffers for Windows paths
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
1 parent
7122298421
commit
8292e3e807
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -14660,7 +14660,7 @@ static int hl_run_hook(const char *home, const char *cache_dir) {
|
||||
* near-1 KiB path can be neither created nor probed, which hides the very
|
||||
* cut-off file these tests look for. */
|
||||
static bool hl_make_root(char *root, size_t root_sz) {
|
||||
char tmpl[64];
|
||||
char tmpl[256];
|
||||
char real[4096];
|
||||
snprintf(tmpl, sizeof(tmpl), "/tmp/cbm-hooklog-XXXXXX");
|
||||
if (!cbm_mkdtemp(tmpl)) {
|
||||
|
||||
@@ -298,7 +298,9 @@ TEST(index_long_log_override_writes_no_cut_path) {
|
||||
* root has its links resolved: the kernel bounds the EXPANDED path, and
|
||||
* under macOS's /tmp -> /private/tmp link a near-1 KiB path can be neither
|
||||
* created nor probed, which would hide the cut-off file. */
|
||||
char tmpl[64];
|
||||
/* cbm_mkdtemp writes the %TEMP%-expanded path back on Windows, so the
|
||||
* template buffer needs the 256 bytes that compat.h asks for. */
|
||||
char tmpl[256];
|
||||
char logroot[4096];
|
||||
snprintf(tmpl, sizeof(tmpl), "/tmp/cbm_resil_log_XXXXXX");
|
||||
if (!cbm_mkdtemp(tmpl)) {
|
||||
|
||||
Reference in new issue
Block a user