[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Fri Nov 7 14:21:13 CET 2003


CVS commit by staikos: 

discovered and worked around the reason for crashes - the regression test was
generating orphan vectors, and issue unresolved in the DCOP interface since it's
so useful to be able to do, but completely unhandled in file handling and data
management


  M +7 -2      test1.sh   1.7


--- kdeextragear-2/kst/tests/test1.sh  #1.6:1.7
@@ -33,5 +33,5 @@
 checkEmptyResponse() {
         if [ ! -s "$TMPFILE" ]; then
-                echo "Test $1 failed.  Response was non-empty."
+                echo "Test $1 failed.  Response was non-empty. [" `cat $TMPFILE` "]"
                 return;
         fi
@@ -383,4 +383,8 @@
 echo -ne "                       \r"
 
+# Must clear out the generated vectors because they don't save properly FIXME
+# 599
+$DCOP newFile >$TMPFILE
+
 # Read in the vectors
 $DCOP loadVector $TESTFILE INDEX >$TMPFILE
@@ -435,7 +439,8 @@
 checkStringResponse 612 "true"
 
+# 613
 $DCOP newFile >$TMPFILE
-checkEmptyResponse 613
 
+# crashes Kst generally, bypassed with #599
 $DCOP open $KSTFILE >$TMPFILE
 checkStringResponse 614 "true"





More information about the Kst mailing list