[PATCH] Crash on new suite creation

Vladimir Prus ghost at cs.msu.su
Wed Feb 6 10:27:40 UTC 2002


Starting with tdb in tutorial, this command sequence leads to crash:

Create test a.b of class Python.ExecTest with 'pass' as expression.
Choose File->New Suite
Set "functional" as suite name.
Click "Next"
Watch crash. 

The patch below seems to fix the problem:

Index: qm/test/file_database.py
===================================================================
RCS file: /home/qm/Repository/qm/qm/test/file_database.py,v
retrieving revision 1.4
diff -u -r1.4 file_database.py
--- qm/test/file_database.py	2002/01/02 18:49:14	1.4
+++ qm/test/file_database.py	2002/02/06 10:23:12
@@ -521,7 +521,7 @@
                 and self._IsSuiteFile(entry_path)):
                 labels.extend(self._GetLabels(entry_path,
                                               scan_subdirs,
-                                              as_absolute(root),
+                                              qm.label.join(label, root),
                                               predicate))
 
         return labels


There's yet another problem: using tutorial tdb, attempt to create suite 
named "c.d" will show a screen for selecting tests, when no tests are shown. 
Is this a reasonable behaviour? Further, EditSuite functionality seems to not 
work. Am I missing something?

- Volodya



More information about the qmtest mailing list