[libcxx-commits] [PATCH] D69170: [libcxx] [test] Run `chmod +x` on executables when testing via SSH
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 18 10:39:34 PDT 2019
ldionne added inline comments.
================
Comment at: libcxx/utils/libcxx/test/executor.py:162
+
+ # When testing executables that were cross-compiled on Windows for
+ # Linux, we may need to explicitly set the execution permission to
----------------
Do I understand correctly: the problem is that files are created on Windows and then `scp`'d to Linux, but there is no executable bit set on Windows so the files arrive on Linux as not executable?
================
Comment at: libcxx/utils/libcxx/test/executor.py:165
+ # avoid the 'Permission denied' error:
+ chmod_cmd = ['chmod', '+x', target_exe_path]
+
----------------
You're assuming that we have `chmod` on the system, but what if we're instead remotely executing binaries compiled on Linux for Windows (not sure that's even a thing, but you get the point)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69170/new/
https://reviews.llvm.org/D69170
More information about the libcxx-commits
mailing list