mailr16866 - /trunk/test_suite/gui_tests/model_free.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 11, 2012 - 21:05:
Author: bugman
Date: Mon Jun 11 21:05:16 2012
New Revision: 16866

URL: http://svn.gna.org/viewcvs/relax?rev=16866&view=rev
Log:
Bug fix for a segmentation fault occurring during the model-free GUI test.

Flushing of the interpreter queue object is needed as some parts of the 
interface use asynchronous
user function calls.


Modified:
    trunk/test_suite/gui_tests/model_free.py

Modified: trunk/test_suite/gui_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/model_free.py?rev=16866&r1=16865&r2=16866&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/model_free.py (original)
+++ trunk/test_suite/gui_tests/model_free.py Mon Jun 11 21:05:16 2012
@@ -106,12 +106,16 @@
         # Set the values, using the methods behind the buttons to set up the 
user functions with default values, and then manually executing the user 
function.
         analysis.value_set_csa()
         uf_store['value.set'].wizard._ok()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
         analysis.value_set_r()
         uf_store['value.set'].wizard._ok()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
         analysis.value_set_heteronuc_type()
         uf_store['value.set'].wizard._ok()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
         analysis.value_set_proton_type()
         uf_store['value.set'].wizard._ok()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
 
         # The unit vector loading wizard.
         analysis.load_unit_vectors()
@@ -120,9 +124,11 @@
         page = analysis.vect_wizard.get_page(0)
         page.uf_args['file'].SetValue(str_to_gui(status.install_path + sep + 
'test_suite' + sep + 'shared_data' + sep + 'model_free' + sep + 'sphere' + 
sep + 'sphere.pdb'))
         analysis.vect_wizard._go_next()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
 
         # The unit vectors.
         analysis.vect_wizard._go_next()
+        interpreter.flush()    # Required because of the asynchronous uf 
call.
 
         # Select only the tm0 and tm1 local tm models.
         analysis.local_tm_model_field.select = [True, True, False, False, 
False, False, False, False, False, False]




Related Messages


Powered by MHonArc, Updated Mon Jun 11 21:20:02 2012