Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: create XDG_RUNTIME_DIR with mode 0700 #577

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/tests-include.pri
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ OBJECTS_DIR = $$TOPDIR/build/tests/
TEST_HOME = /tmp/tarsnap-gui-test
DEFINES += "TEST_DIR=\\\"$${TEST_HOME}/$${TARGET}\\\""
DEFINES += "TEST_NAME=\\\"$${TARGET}\\\""
test_home_prep.commands = rm -rf "$${TEST_HOME}/$${TARGET}"
test_home_prep.commands = rm -rf "$${TEST_HOME}/$${TARGET}"; \
mkdir -m 0700 -p "$${TEST_HOME}"
# XDG_*_HOME uses a custom "home" directory to store data, thereby not messing
# up user-wide files.
TEST_ENV = XDG_CONFIG_HOME=$${TEST_HOME} \
Expand Down
2 changes: 1 addition & 1 deletion tests/valgrind/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if [ "$DEBUG" -eq 1 ]; then
fi

# Create XDG dir (if necessary)
mkdir -p "${XDGD}"
mkdir -m 0700 -p "${XDGD}"

# If the suppressions already exist, indicate that this is a retest.
# (This may be useful while investigating occasional memory leaks.)
Expand Down
Loading