apjanke / octave-testify

New BIST (Built-In Self Test) functions for GNU Octave
GNU General Public License v3.0
4 stars 2 forks source link

forgepkgtester: have Ctrl-C do an early-end and still print results #21

Closed apjanke closed 5 years ago

apjanke commented 5 years ago

Ctrl-C just abandons the test, with no results output. It would be nice if we could have it do an early-end instead, having it note the abort and still print the result summary.

apjanke commented 5 years ago

Maybe I could do this the quick-and-dirty way by just putting the results output in an unwind_protect.

apjanke commented 5 years ago

Ha ha ha. Yep. I just moved the results output into the unwind_protect_cleanup block. Done in https://github.com/apjanke/octave-testify/commit/2333a6b9a8fa3085e0dc5c65e2b08c8aa7305f4c.