X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fruntests.py;h=2912be46e7f3c916d3fb58825164fe2c03e6de5a;hb=099f720a2eb374c5ac8541aeedd75c215b422ce2;hp=ab5418af5635db0a1df6b01862b547cc6e6801d5;hpb=4c49c3dc8db6d64096b8342832c1ae2eee8a5ff8;p=swftools.git diff --git a/lib/as3/runtests.py b/lib/as3/runtests.py index ab5418a..2912be4 100644 --- a/lib/as3/runtests.py +++ b/lib/as3/runtests.py @@ -137,11 +137,13 @@ class TestBase: def compile(self): try: os.unlink("abc.swf"); except: pass - ret,output = runcmd("./parser",[self.file],wait=60) + ret,output = runcmd("./parser",[self.file],wait=1) self.compile_error = 0 self.compile_output = output + self.exit_status = 0 if ret: self.compile_output += "\nExit status %d" % (-ret) + self.exit_status = -ret self.compile_error = 1 return 0 if not os.path.isfile("abc.swf"): @@ -163,11 +165,14 @@ class TestBase: print self.r(str(self.nr),3)," ", if self.compile_error: if self.dorun: - print "err"," - ", + if self.exit_status == 11: + print "crash"," - ", + else: + print "err "," - ", else: - print "err"," ", + print "err "," ", else: - print "ok ", + print "ok ", if self.dorun: if not self.flash_error: print "ok ", @@ -248,7 +253,7 @@ cache = Cache.load(".tests.cache") cache.parse_args() nr = 0 -nr = Suite(cache, "err").run(nr) +#nr = Suite(cache, "err").run(nr) nr = Suite(cache, "ok").run(nr) cache.save(".tests.cache")