Skip to content

Commit

Permalink
Do not create files outside of build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jun 9, 2024
1 parent d7fda84 commit 2c42157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/mock/mock-bluealsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion test/mock/mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion test/test-ba.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 2c42157

Please sign in to comment.