From 2c42157ada529134cc320951a531cd6b1d1fc5f5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Sun, 9 Jun 2024 10:26:25 +0200 Subject: [PATCH] Do not create files outside of build directory --- test/mock/mock-bluealsa.c | 2 -- test/mock/mock.c | 3 ++- test/test-ba.c | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mock/mock-bluealsa.c b/test/mock/mock-bluealsa.c index 008eda97b..e0ca5fb05 100644 --- a/test/mock/mock-bluealsa.c +++ b/test/mock/mock-bluealsa.c @@ -60,8 +60,6 @@ #include "inc/sine.inc" -#define TEST_BLUEALSA_STORAGE_DIR "/tmp/bluealsa-mock-storage" - static const a2dp_sbc_t config_sbc_44100_stereo = { .frequency = SBC_SAMPLING_FREQ_44100, .channel_mode = SBC_CHANNEL_MODE_JOINT_STEREO, diff --git a/test/mock/mock.c b/test/mock/mock.c index c87590ef4..a528c8ad5 100644 --- a/test/mock/mock.c +++ b/test/mock/mock.c @@ -42,7 +42,8 @@ #include "shared/defs.h" #include "shared/log.h" -#define TEST_BLUEALSA_STORAGE_DIR "/tmp/bluealsa-mock-storage" +/* Keep persistent storage in the current directory. */ +#define TEST_BLUEALSA_STORAGE_DIR "storage-mock" GAsyncQueue *mock_sem_ready = NULL; GAsyncQueue *mock_sem_timeout = NULL; diff --git a/test/test-ba.c b/test/test-ba.c index 27fd45e16..35fe7b2ee 100644 --- a/test/test-ba.c +++ b/test/test-ba.c @@ -46,7 +46,8 @@ #include "inc/check.inc" -#define TEST_BLUEALSA_STORAGE_DIR "/tmp/bluealsa-test-ba-storage" +/* Keep persistent storage in the current directory. */ +#define TEST_BLUEALSA_STORAGE_DIR "storage-test-ba" int a2dp_transport_init(struct ba_transport *t) { (void)t; return 0; } int a2dp_transport_start(struct ba_transport *t) { (void)t; return 0; }