From 84f75552aac1b0cfde3ee7d70245abb924fa9e4e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 4 Nov 2014 11:26:43 -0800 Subject: [PATCH] fix test harness for native optimizer --- tests/test_other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_other.py b/tests/test_other.py index 1efebdc48..e0767311e 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1945,7 +1945,7 @@ int f() { shutil.copyfile(input, input_temp) Popen(listify(NODE_JS) + [path_from_root('tools', 'js-optimizer.js'), input_temp, 'emitJSON'], stdin=PIPE, stdout=open(input_temp + '.js', 'w')).communicate() output = Popen([js_optimizer.get_native_optimizer(), input_temp + '.js'] + passes, stdin=PIPE, stdout=open(output_temp, 'w')).communicate()[0] - Popen(listify(NODE_JS) + [path_from_root('tools', 'js-optimizer.js'), output_temp, 'emitJSON'], stdin=PIPE, stdout=open(output_temp + '.js', 'w')).communicate() + Popen(listify(NODE_JS) + [path_from_root('tools', 'js-optimizer.js'), output_temp, 'receiveJSON'], stdin=PIPE, stdout=open(output_temp + '.js', 'w')).communicate() output = open(output_temp + '.js').read() self.assertIdentical(expected, output.replace('\r\n', '\n').replace('\n\n', '\n'))