• Marco Trevisan's avatar
    main: Ensure that a gcov flush happens on SIGTERM · 0994cc31
    Marco Trevisan authored
    When coverage is enabled fprintd test won't generate any .gcda file and so
    apparently no data, this happens because gcov doesn't handle properly the
    process termination when SIGTERM is used, and so when in fprintd.py we
    terminate the process no coverage data is reported.
    
    To avoid this, quit the main loop cleanly on SIGTERM, so that we will exit
    from the main function cleanly, making libc to perform a gcov flush when we
    exit the program.
    0994cc31
fprintd.py 17.1 KB