From 25e3d90303bfbe49ae2458cc435523702d3f2d62 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Fri, 22 Apr 2011 22:23:16 +0000 Subject: [PATCH] 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 --- development/autotests/keytest.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/development/autotests/keytest.py b/development/autotests/keytest.py index bbb57b4fe3..1753f1460b 100755 --- a/development/autotests/keytest.py +++ b/development/autotests/keytest.py @@ -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) -- 2.39.2