1
0
forked from Mirror/wren

Remove magic values as exit codes in test application (#777)

This commit is contained in:
CohenArthur
2020-07-11 22:30:43 +02:00
committed by GitHub
parent a3f5b3d98f
commit 58611240e7
5 changed files with 29 additions and 12 deletions

View File

@ -47,8 +47,8 @@ int main(int argc, const char* argv[]) {
exitCode = APITest_Run(vm, testName);
}
if (result == WREN_RESULT_COMPILE_ERROR) return 65; // EX_DATAERR.
if (result == WREN_RESULT_RUNTIME_ERROR) return 70; // EX_SOFTWARE.
if (result == WREN_RESULT_COMPILE_ERROR) return WREN_EX_DATAERR;
if (result == WREN_RESULT_RUNTIME_ERROR) return WREN_EX_SOFTWARE;
wrenFreeVM(vm);