test/.../print-dot-dom.ll: Avoid writing to cwd of test by creating/cding into %t...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 25 Jul 2023 02:32:04 +0000 (02:32 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 25 Jul 2023 03:04:42 +0000 (03:04 +0000)
The cwd of the test might not be writable.

llvm/test/Analysis/Dominators/print-dot-dom.ll

index faad5a6a51db142d79e65b88a309128828034609..f7d3ea9d0f52dd1ab72f61162782821dffaedd69 100644 (file)
@@ -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