params={})
_, tmpBase = libcxx.test.newformat._getTempPaths(test)
execDir = os.path.dirname(test.getExecPath())
- if not os.path.exists(execDir):
- os.makedirs(execDir)
+ for d in (execDir, os.path.dirname(tmpBase)):
+ if not os.path.exists(d):
+ os.makedirs(d)
res = lit.TestRunner.executeScriptInternal(test, litConfig, tmpBase, parsedCommands, execDir)
if isinstance(res, lit.Test.Result):
res = ('', '', 127, None)
with open(test.getSourcePath(), 'w') as sourceFile:
sourceFile.write(source)
out, err, exitCode, timeoutInfo = _executeScriptInternal(test, [
- "mkdir -p %T",
"%{cxx} %s %{flags} %{compile_flags} %{link_flags} -o %t.exe"
])
_executeScriptInternal(test, ['rm %t.exe'])
source.write(program)
try:
_, _, exitCode, _ = _executeScriptInternal(test, [
- "mkdir -p %T",
"%{cxx} %s %{flags} %{compile_flags} %{link_flags} -o %t.exe",
])
if exitCode != 0: