[clang][ClangScanDeps][test] Remove the file before overwriting it
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 6 Apr 2023 11:37:35 +0000 (13:37 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 6 Apr 2023 11:51:57 +0000 (13:51 +0200)
commitef1b22a20fd4d8c0cfea64089d4e732dd95dc265
tree0083d43e036b86190049499cd14787ca58e4b006
parentf3d9abf1f87c308e9d7bd368b3ad54cb8f28ac4f
[clang][ClangScanDeps][test] Remove the file before overwriting it

Remove the file copied from the source tree before overwriting it. If
the source code is stored with readonly (0444) permissions, then
the copied files are also readonly and attempting to overwrite them
fails.
clang/test/ClangScanDeps/modules-pch.c