diff --git a/test/tools/llvm-lit/lit.local.cfg b/test/tools/llvm-lit/lit.local.cfg new file mode 100644 index 000000000000..856a54932f0b --- /dev/null +++ b/test/tools/llvm-lit/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.c'] diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index fa4880a593a6..652e8b499c5c 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -357,7 +357,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd): if isWin32CMDEXE: f.write('\nif %ERRORLEVEL% NEQ 0 EXIT\n'.join(commands)) else: - f.write(' &&\n'.join(commands)) + f.write('{ ' + '; } &&\n{ '.join(commands) + '; }') f.write('\n') f.close()