Skip to content

Commit cf24b6a

Browse files
committed
Merge branch 'sync/upstream-13m1-20261108' into sync/upstream-13n-20261108
2 parents e471723 + c3c5271 commit cf24b6a

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎tests/test_index_policy.c‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,16 @@ TEST(index_policy_worker_rejects_missing_parent_policy) {
354354
}
355355

356356
TEST(index_policy_mcp_rejects_forged_override_and_preserves_serving_index) {
357-
char *repo = th_mktempdir("cbm_index_policy_mcp_repo");
358-
char *cache = th_mktempdir("cbm_index_policy_mcp_cache");
359-
ASSERT_NOT_NULL(repo);
360-
ASSERT_NOT_NULL(cache);
357+
char repo_path[1024];
358+
char *created = th_mktempdir("cbm_index_policy_mcp_repo");
359+
ASSERT_NOT_NULL(created);
360+
(void)snprintf(repo_path, sizeof(repo_path), "%s", created);
361+
created = th_mktempdir("cbm_index_policy_mcp_cache");
362+
ASSERT_NOT_NULL(created);
363+
char cache_path[1024];
364+
(void)snprintf(cache_path, sizeof(cache_path), "%s", created);
365+
const char *repo = repo_path;
366+
const char *cache = cache_path;
361367
ASSERT_EQ(th_write_file(TH_PATH(repo, "first.c"), "int first(void) { return 1; }\n"), 0);
362368

363369
const char *saved_cache = getenv("CBM_CACHE_DIR");

0 commit comments

Comments
 (0)