ece694b96b
If test resources have read-only permissions and are copied to generated_compilations copySync will fail the next time because it can't overwrite the write protected file. Creating the file first ensures that it has default permissions that won't be changed when copySync overwrites it. Change-Id: I1b4a07c4644dc6d0c25275ebc84ba4ebc07a56c6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162754 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Alexander Thomas <athom@google.com>