uyar / calico

GNU General Public License v3.0
8 stars 4 forks source link

Check if tested program terminated with a signal #10

Closed sahinakkaya closed 4 years ago

sahinakkaya commented 4 years ago

Currently calico raises a TypeError if the tested program terminates abnormally (i.e. with a SIGSEGV or other signals). This patch includes required checks to prevent this.

ghost commented 4 years ago

Merged, thanks!

sahinakkaya commented 4 years ago

You are welcome. I don't know if a program can terminate with a signal and have an exit status at the same time so I wrote two if statements. But if it can't happen, which probably is, you may consider changing the bottom if to an elif, just for better code.