Changeset 21c3ea1


Ignore:
Timestamp:
Sep 28, 2020, 5:25:56 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d13dd6b
Parents:
f866d15
Message:

Removed python signal handling which caused issues on ubuntu20.04.
This means hitting Ctrl-C can print a stacktrace per core used (i.e.: 128 stack traces if using all the brokks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    rf866d15 r21c3ea1  
    262262        make('clean', output_file=subprocess.DEVNULL, error=subprocess.DEVNULL)
    263263
    264         # since python prints stacks by default on a interrupt, redo the interrupt handling to be silent
    265         def worker_init():
    266                 def sig_int(signal_num, frame):
    267                         pass
    268 
    269                 signal.signal(signal.SIGINT, sig_int)
    270 
    271         # create the executor for our jobs and handle the signal properly
    272         pool = multiprocessing.Pool(jobs, worker_init)
     264        # create the executor for our jobs
     265        pool = multiprocessing.Pool(jobs)
    273266
    274267        failed = False
    275 
    276         def stop(x, y):
    277                 print("Tests interrupted by user", file=sys.stderr)
    278                 sys.exit(1)
    279         signal.signal(signal.SIGINT, stop)
    280268
    281269        # for each test to run
Note: See TracChangeset for help on using the changeset viewer.