diff options
Diffstat (limited to 'cts/common/cts.rc')
-rw-r--r-- | cts/common/cts.rc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/cts/common/cts.rc b/cts/common/cts.rc index 11ae8a8dce..8d66a8af4e 100644 --- a/cts/common/cts.rc +++ b/cts/common/cts.rc @@ -5,13 +5,21 @@ /* * This file is included by cts_common.h as an enumeration of error codes, - * as well as being processed by cts.py to get error code names. - * cts.py depends on CTS_RC_SUCCESS being the first error code listed so - * that its value - * is 0 when enumerated + * as well as being processed by cts.py to get error code names. The format + * must be either of the followings: + * + * CTS_RC_<NAME>, + * CTS_RC_<NAME> = X, + * + * where <NAME> will be printed on the result screen. */ -CTS_RC_SUCCESS, +/* Host only codes. Should not be needed by th.c or dut.c. */ +CTS_RC_DUPLICATE_RUN = -2, +CTS_RC_NO_RESULT = -1, + +/* Regular codes */ +CTS_RC_SUCCESS = 0, CTS_RC_FAILURE, CTS_RC_BAD_SYNC, CTS_RC_TIMEOUT, |