Added check for assertions or anomalous exits of LyX on TestEnd.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38477 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2011-04-22 22:23:16 +00:00
parent d4bcdae8d7
commit 25e3d90303

View File

@ -375,6 +375,10 @@ while not failed:
print "result=" + str(result) + ", failed=" + str(failed)
elif c[0:7] == 'TestEnd':
time.sleep(0.5)
if not lyx_exists():
print "LyX instance not found because of crash or assert !\n"
failed = true
else:
print "Terminating lyx instance: " + str(lyx_pid) + "\n"
intr_system("kill -9 " + str(lyx_pid), True);
while lyx_exists():