From cc52e1f428f3a56e449de2fae85f9da56bfb144d Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Wed, 6 Aug 2014 23:53:10 -0700 Subject: [PATCH] Handle sys.exit in perftc --- tests/perfsys.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/perfsys.ts b/tests/perfsys.ts index a54844da7b9..d3f7ff2ab02 100644 --- a/tests/perfsys.ts +++ b/tests/perfsys.ts @@ -16,11 +16,13 @@ module perftest { var resolvePath = sys.resolvePath; export var getExecutingFilePath = sys.getExecutingFilePath; export var getCurrentDirectory = sys.getCurrentDirectory; + var exit = sys.exit; var args = sys.args; // augment sys so first ts.executeCommandLine call will be finish silently sys.write = (s: string) => { }; + sys.exit = (code: number) => { }; sys.args = [] export function restoreSys() { @@ -88,10 +90,9 @@ module perftest { return path } - sys.writeFile = (path: string, data: string) => { }; + sys.writeFile = (path: string, data: string) => { }; var out: string = ""; - var err: string = ""; sys.write = (s: string) => { out += s; };