<div dir="ltr">I'm writing a lit test that needs to temporarily make a subdirectory. <div><br></div><div>I tried:</div><div><br></div><div>```</div><div>// RUN: mkdir %t/subdir<br></div><div>```</div><div><br></div><div>But on Windows, it's hard to bypass the built-in mkdir to use a Posix-style one from Git or GnuWin.  The built-in mkdir believes the `/subdir` is an unrecognized command flag.  I figure I cannot just use a backslash because that would fail on Posix systems.  (The test should run on all platforms.)</div><div><br></div><div>The lit documentation mentioned a `%{pathsep}` macro, so I tried that.  After several minutes of confusing results, I discovered this is not for the path component separator, but for the separators used between paths in the PATH environment variable.  On Windows, that's ';', which doesn't help.</div><div><br></div><div>Suggestions?</div><div><br></div><div>Thanks,</div><div>Adrian McCarthy</div><div><br></div><div>Why does this test need a separate directory?</div><div><br></div><div>The test is to confirm that LLDB can locate a PDB symbol file that corresponds to the target executable.  In the executable, the linker writes the location where it generated the PDB file.  I need that path to be a different directory than the directory for the executable itself because the fallback search includes the directory of the executable.<br></div></div>