Author: Dmitri Gribenko Date: 2024-03-29T00:38:11+01:00 New Revision: 5906b1ad3f70586c72293d5c62eb3f26977b8b96
URL: https://github.com/llvm/llvm-project/commit/5906b1ad3f70586c72293d5c62eb3f26977b8b96 DIFF: https://github.com/llvm/llvm-project/commit/5906b1ad3f70586c72293d5c62eb3f26977b8b96.diff LOG: [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. Added: Modified: clang/test/APINotes/module-cache.m Removed: ################################################################################ diff --git a/clang/test/APINotes/module-cache.m b/clang/test/APINotes/module-cache.m index 5dcaf1181f9dcf..e5920884ad860f 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits