summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/dex/utils/ReturnCode.py
blob: 487d225d1b6358c402ee65e823a48ebb6c01dca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# DExTer : Debugging Experience Tester
# ~~~~~~   ~         ~~         ~   ~~
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

from enum import Enum


class ReturnCode(Enum):
   """Used to indicate whole program success status."""

   OK = 0
   _ERROR = 1        # Unhandled exceptions result in exit(1) by default.
                     # Usage of _ERROR is discouraged:
                     # If the program cannot run, raise an exception.
                     # If the program runs successfully but the result is
                     # "failure" based on the inputs, return FAIL
   FAIL = 2
OpenPOWER on IntegriCloud