From 2f4f66c0d76d7425029874f2ca420f0f44f2bcee Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 2 May 2019 14:11:37 -0700 Subject: [PATCH] Fix api conformance check (flutter/engine#8817) --- engine/src/flutter/web_sdk/test/api_conform_test.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/web_sdk/test/api_conform_test.dart b/engine/src/flutter/web_sdk/test/api_conform_test.dart index bf4b628303..1dd8b850c1 100644 --- a/engine/src/flutter/web_sdk/test/api_conform_test.dart +++ b/engine/src/flutter/web_sdk/test/api_conform_test.dart @@ -2,9 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:io'; + import 'package:analyzer/analyzer.dart'; -int main() { +void main() { // These files just contain imports to the part files; final CompilationUnit uiUnit = parseDartFile('lib/ui/ui.dart', parseFunctionBodies: false, suppressErrors: false); @@ -86,10 +88,10 @@ int main() { } if (failed) { print('Failure!'); - return 1; + exit(1); } print('Success!'); - return 0; + exit(0); } // Collects all public classes defined by the part files of [unit].