[llvm] dd84f5f - test/.../print-dot-dom.ll: Avoid writing to cwd of test by creating/cding into %t instead
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 20:04:51 PDT 2023
Author: David Blaikie
Date: 2023-07-25T03:04:42Z
New Revision: dd84f5f91c6b234a2f188b6acf8557cae81b8a53
URL: https://github.com/llvm/llvm-project/commit/dd84f5f91c6b234a2f188b6acf8557cae81b8a53
DIFF: https://github.com/llvm/llvm-project/commit/dd84f5f91c6b234a2f188b6acf8557cae81b8a53.diff
LOG: test/.../print-dot-dom.ll: Avoid writing to cwd of test by creating/cding into %t instead
The cwd of the test might not be writable.
Added:
Modified:
llvm/test/Analysis/Dominators/print-dot-dom.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/Dominators/print-dot-dom.ll b/llvm/test/Analysis/Dominators/print-dot-dom.ll
index faad5a6a51db14..f7d3ea9d0f52dd 100644
--- a/llvm/test/Analysis/Dominators/print-dot-dom.ll
+++ b/llvm/test/Analysis/Dominators/print-dot-dom.ll
@@ -1,3 +1,6 @@
+; RUN: rm -rf %t
+; RUN: mkdir %t
+; RUN: cd %t
; RUN: opt %s -passes=dot-dom -disable-output
; RUN: FileCheck %s -input-file=dom.test1.dot -check-prefix=TEST1
; RUN: FileCheck %s -input-file=dom.test2.dot -check-prefix=TEST2
More information about the llvm-commits
mailing list