The practice of test suites using exit codes of tests to mean SKIP / ERROR / CONF / WARN / etc. is pretty widespread. Due to the lack of any standardization, the PTEF specification doesn't go beyond 0=PASS, else=FAIL, ... however the reference implementation should probably allow some customization, like with result status colors.
Unlike status colors, exit codes should likely be a simple static 256-member-long array of char*, defining statuses for individual exit codes, with 0/NULL meaning "use default". Then there should be another global char* variable defining the default status.
The practice of test suites using exit codes of tests to mean
SKIP
/ERROR
/CONF
/WARN
/ etc. is pretty widespread. Due to the lack of any standardization, the PTEF specification doesn't go beyond 0=PASS, else=FAIL, ... however the reference implementation should probably allow some customization, like with result status colors.Unlike status colors, exit codes should likely be a simple static 256-member-long array of
char*
, defining statuses for individual exit codes, with 0/NULL meaning "use default". Then there should be another globalchar*
variable defining the default status.The standard-specified default would then be