Skip to content

Commit

Permalink
Don't eat compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Dec 8, 2016
1 parent 5cf0fec commit 1d30772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,9 @@ def compile(self):
compile_args = getattr(self, 'compile_args', None)
if compile_args:
if compile_args not in BaseTest.compiled:
try:
# pylint: disable=star-args
BaseTest.compiled[compile_args] = \
self.target.compile(*compile_args)
except Exception: # pylint: disable=broad-except
print "exception while compiling in %.2fs" % (
time.time() - self.start)
print "=" * 40
header("Traceback")
traceback.print_exc(file=sys.stdout)
print "/" * 40
return "exception"
# pylint: disable=star-args
BaseTest.compiled[compile_args] = \
self.target.compile(*compile_args)
self.binary = BaseTest.compiled.get(compile_args)

def classSetup(self):
Expand Down
2 changes: 1 addition & 1 deletion env
Submodule env updated 5 files
+1 −1 encoding.h
+1 −1 p/riscv_test.h
+1 −1 v/entry.S
+5 −1 v/riscv_test.h
+2 −2 v/vm.c

0 comments on commit 1d30772

Please sign in to comment.