mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
d4bcdae8d7
commit
25e3d90303
@ -375,11 +375,15 @@ while not failed:
|
|||||||
print "result=" + str(result) + ", failed=" + str(failed)
|
print "result=" + str(result) + ", failed=" + str(failed)
|
||||||
elif c[0:7] == 'TestEnd':
|
elif c[0:7] == 'TestEnd':
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
print "Terminating lyx instance: " + str(lyx_pid) + "\n"
|
if not lyx_exists():
|
||||||
intr_system("kill -9 " + str(lyx_pid), True);
|
print "LyX instance not found because of crash or assert !\n"
|
||||||
while lyx_exists():
|
failed = true
|
||||||
print "Waiting for lyx to die...\n"
|
else:
|
||||||
time.sleep(0.5)
|
print "Terminating lyx instance: " + str(lyx_pid) + "\n"
|
||||||
|
intr_system("kill -9 " + str(lyx_pid), True);
|
||||||
|
while lyx_exists():
|
||||||
|
print "Waiting for lyx to die...\n"
|
||||||
|
time.sleep(0.5)
|
||||||
cmd = c[8:].rstrip()
|
cmd = c[8:].rstrip()
|
||||||
print "Executing " + cmd
|
print "Executing " + cmd
|
||||||
result = intr_system(cmd)
|
result = intr_system(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user