mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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)
|
||||
elif c[0:7] == 'TestEnd':
|
||||
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)
|
||||
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():
|
||||
print "Waiting for lyx to die...\n"
|
||||
time.sleep(0.5)
|
||||
cmd = c[8:].rstrip()
|
||||
print "Executing " + cmd
|
||||
result = intr_system(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user