[all-commits] [llvm/llvm-project] 7e7735: [clang][test] Avoid writing to a potentially write...
Karl-Johan Karlsson via All-commits
all-commits at lists.llvm.org
Tue Jun 25 12:28:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7e77353db6984b2bf07f54fd0ef5f56bf1aa8244
https://github.com/llvm/llvm-project/commit/7e77353db6984b2bf07f54fd0ef5f56bf1aa8244
Author: Karl-Johan Karlsson <karl-johan.karlsson at ericsson.com>
Date: 2024-06-25 (Tue, 25 Jun 2024)
Changed paths:
M clang/test/Preprocessor/embed_weird.cpp
Log Message:
-----------
[clang][test] Avoid writing to a potentially write-protected dir (#96457)
The test clang/test/Preprocessor/embed_weird.cpp creates a file directly
in the Inputs dir in the llvm-project repo instead of the temporary
directory. The llvm-project repo may be write protected e.g. in a
sandboxed environment.
This patch creates a separate temporary directory where the
null_byte.bin file is created along with the rest of copies of the other
embed-files needed for the testcase.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list