mailr26559 - /trunk/test_suite/gui_tests/noe.py


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

Header


Content

Posted by edward on November 13, 2014 - 11:31:
Author: bugman
Date: Thu Nov 13 11:31:42 2014
New Revision: 26559

URL: http://svn.gna.org/viewcvs/relax?rev=26559&view=rev
Log:
Created the blacklisted Noe.test_noe_analysis_memory_leaks GUI test.

This long test can be manually run to help chase down memory leaks.  This can 
be monitored using the
MS Windows task manager, once the 'USER Objects' column is shown.  If the 
USER Objects count reaches
10,000 in Windows, then no more GUI elements can be created and the user will 
see errors.


Modified:
    trunk/test_suite/gui_tests/noe.py

Modified: trunk/test_suite/gui_tests/noe.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/noe.py?rev=26559&r1=26558&r2=26559&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/noe.py   (original)
+++ trunk/test_suite/gui_tests/noe.py   Thu Nov 13 11:31:42 2014
@@ -35,6 +35,22 @@
 
 class Noe(GuiTestCase):
     """Class for testing various aspects specific to the NOE analysis."""
+
+    def __init__(self, methodName=None):
+        """Set up the test case class for the system tests."""
+
+        # Execute the base __init__ methods.
+        super(Noe, self).__init__(methodName)
+
+        # Tests to skip.
+        blacklist = [
+            'test_noe_analysis_memory_leaks'
+        ]
+
+        # Skip the blacklisted tests.
+        if methodName in blacklist:
+            status.skipped_tests.append([methodName, None, self._skip_type])
+
 
     def test_noe_analysis(self):
         """Test the NOE analysis."""
@@ -152,3 +168,18 @@
 
         # Check the created files.
         self.assert_(access(ds.tmpdir+sep+'grace'+sep+'noe.agr', F_OK))
+
+
+    def test_noe_analysis_memory_leaks(self):
+        """Test for memory leaks in the NOE analysis.
+
+        This can be monitored using the MS Windows task manager, once the 
'USER Objects' column is shown.
+        """
+
+        # A large loop (to try to reach the USER Object limit in MS Windows).
+        for i in range(1000):
+            # Simulate the new analysis wizard.
+            analysis = self.new_analysis_wizard(analysis_type='noe')
+
+            # Close the analysis.
+            self.app.gui.analysis.delete_analysis(0)




Related Messages


Powered by MHonArc, Updated Thu Nov 13 11:40:02 2014