Changeset 86c8fd6 for src


Ignore:
Timestamp:
Apr 25, 2017, 12:03:08 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
b98c913
Parents:
cf67057
Message:

Tests: better handling of errors when compiler is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    rcf67057 r86c8fd6  
    2828def getMachineType():
    2929        sh('echo "void ?{}(int*a,int b){}int main(){return 0;}" > .dummy.c')
    30         ret, out = sh("make .dummy", print2stdout=False)
     30        ret, out = sh("make .dummy -s", print2stdout=False)
     31       
    3132        if ret != 0:
    3233                print("Failed to identify architecture:")
    3334                print(out)
    3435                print("Stopping")
     36                sh("rm -f .dummy.c > /dev/null 2>&1")
     37                sh("rm -f .dummy > /dev/null 2>&1")
    3538                sys.exit(1)
     39
    3640        _, out = sh("file .dummy", print2stdout=False)
    3741        sh("rm -f .dummy.c > /dev/null 2>&1")
Note: See TracChangeset for help on using the changeset viewer.