| 70 | } |
| 71 | |
| 72 | const char *cbm_proc_outcome_str(cbm_proc_outcome_t o) { |
| 73 | switch (o) { |
| 74 | case CBM_PROC_CLEAN: |
| 75 | return "clean"; |
| 76 | case CBM_PROC_EXIT_NONZERO: |
| 77 | return "exit_nonzero"; |
| 78 | case CBM_PROC_CRASH: |
| 79 | return "crash"; |
| 80 | case CBM_PROC_HANG: |
| 81 | return "hang"; |
| 82 | case CBM_PROC_KILLED: |
| 83 | return "killed"; |
| 84 | case CBM_PROC_SPAWN_FAILED: |
| 85 | default: |
| 86 | return "spawn_failed"; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /* Tail newly-appended complete lines from the child log, starting at *tail_pos. |
| 91 | * A partial (non-newline-terminated) final line is left buffered: *tail_pos is |
no outgoing calls
no test coverage detected