Changeset 22a4292


Ignore:
Timestamp:
Jun 25, 2021, 1:26:32 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
e75b753
Parents:
7de2affc
Message:

Fixed test suite to not crash when running on machines that don't have gdb.
Looking at the github build machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    r7de2affc r22a4292  
    376376                return 1, "ERR No core dump"
    377377
    378         return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
     378        try:
     379                return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
     380        except:
     381                return 1, "ERR Could not read core with gdb"
    379382
    380383def core_archive(dst, name, exe):
Note: See TracChangeset for help on using the changeset viewer.