[clang] Make Driver tests pass when running with temp dir containing "crt"
authorNico Weber <thakis@chromium.org>
Sun, 27 Mar 2022 20:10:02 +0000 (16:10 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 28 Mar 2022 20:06:43 +0000 (16:06 -0400)
commit67aea3b65cc5417a06712a22a2dfb5f3f7f43eff
tree28269c4cf782ada6f450aa5a5204f3af9e54b707
parent16ed79d569524a5ed59a20ba54089d744e851ea0
[clang] Make Driver tests pass when running with temp dir containing "crt"

In a recent run, temp files got created in /tmp/lit-tmp-2wcrtcx1/foo-xxx.o.
Since the tmp path contained "crt", this made a few tests fail:
http://45.33.8.238/linux/72221/step_7.txt

Not allowing '/' as path of the file name prevents this.

Differential Revision: https://reviews.llvm.org/D122547
clang/test/Driver/dragonfly.c
clang/test/Driver/freebsd.c
clang/test/Driver/fuchsia.c
clang/test/Driver/linux-cross.cpp
clang/test/Driver/netbsd.c
clang/test/Driver/openbsd.c