OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE.md file. | |
4 | |
5 /// Exit codes recognized by our test infrastructure. This file is shared with | |
6 /// our test infrastructure and should be kept simple and only contain | |
7 /// int-valued top-level compile-time constants. | |
8 library fletchc.exit_codes; | |
9 | |
10 /// Exit code to use when the compiler crashed. This is recognized by our test | |
11 /// runner (test.dart) as status `Crash`. | |
12 const COMPILER_EXITCODE_CONNECTION_ERROR = 252; | |
13 | |
14 /// Exit code to use when the compiler crashed. This is recognized by our test | |
15 /// runner (test.dart) as status `Crash`. | |
16 const COMPILER_EXITCODE_CRASH = 253; | |
17 | |
18 /// Exit code to use when the program running on the Fletch VM encounters a | |
19 /// compile-time error. This is recognized by our test runner (test.dart) as | |
20 /// status `CompileTimeError`. | |
21 const DART_VM_EXITCODE_COMPILE_TIME_ERROR = 254; | |
22 | |
23 /// Exit code to use when the program running on the Fletch VM throws an | |
24 /// uncaught exception. This is recognized by out test runner (test.dart) as | |
25 /// status `RuntimeError`. | |
26 const DART_VM_EXITCODE_UNCAUGHT_EXCEPTION = 255; | |
27 | |
28 /// Exit code returned by `compile` verb when `--fatal-incremental-failures` is | |
29 /// used and incremental compilation failed. | |
30 const INCREMENTAL_COMPILER_FAILED = 3; | |
31 | |
32 /// Exit code returned by `compile` verb when `--analyze-only` is used and | |
33 /// problems (other than errors) were detected. | |
34 const ANALYSIS_HAD_NON_ERROR_PROBLEMS = 2; | |
35 | |
36 /// Exit code returned by `compile` verb when `--analyze-only` is used and | |
37 /// errors were detected. | |
38 const ANALYSIS_HAD_ERRORS = 1; | |
OLD | NEW |