summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2024-03-29 00:35:41 +0100
committerDmitri Gribenko <gribozavr@gmail.com>2024-03-29 00:38:11 +0100
commit5906b1ad3f70586c72293d5c62eb3f26977b8b96 (patch)
treeaff963ee2d780df3ddc00a282016b7c3419cb28b
parent9ea0396f1608681e524e1159bfa8568f3ccfbb99 (diff)
[APINotes][test] Fix permissions of a file copied from a source tree
Our CI system makes the source tree read-only. The 'cp' command that copies a directory from the source tree into a temp directory preserves permissions, and the copied files stay read-only. When the test tries to append to one of these files, it fails with a "permission denied" error.
-rw-r--r--clang/test/APINotes/module-cache.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/APINotes/module-cache.m b/clang/test/APINotes/module-cache.m
index 5dcaf1181f9d..e5920884ad86 100644
--- a/clang/test/APINotes/module-cache.m
+++ b/clang/test/APINotes/module-cache.m
@@ -27,6 +27,7 @@
// RUN: FileCheck -check-prefix=CHECK-ONE-ERROR %s < %t/before.log
// Change the API notes file, after the module has rebuilt once.
+// RUN: chmod u+w %t/APINotes/SomeOtherKit.apinotes
// RUN: echo ' - Selector: "methodA"' >> %t/APINotes/SomeOtherKit.apinotes
// RUN: echo ' MethodKind: Instance' >> %t/APINotes/SomeOtherKit.apinotes
// RUN: echo ' Availability: none' >> %t/APINotes/SomeOtherKit.apinotes