Skip to content

Commit

Permalink
Refs #4316 GUI test that seems to work on RHEL5 and Ubuntu 10.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Dec 19, 2011
1 parent 72c2061 commit 54d48dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidQt/SliceViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ endif ()
###########################################################################

# python unit tests
#if ( PYUNITTEST_FOUND )
if ( 0 )
if ( PYUNITTEST_FOUND )
#if ( 0 )
pyunittest_add_test ( SliceViewerTest.py ${TEST_PY_FILES} "" )
add_dependencies ( SliceViewerTest.py MantidQt Algorithms )
add_dependencies ( GUITests SliceViewerTest.py )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,11 @@ def tearDown(self):
self.svw.deleteLater()
self.svw.show()
# Schedule quit at the next event
Qt.QTimer.singleShot(0, app, Qt.SLOT("closeAllWindows()"))
Qt.QTimer.singleShot(0, app, Qt.SLOT("quit()"))
# This is required for deleteLater() to do anything (it deletes at the next event loop)
app.quitOnLastWindowClosed = True
app.exec_()
return

while app.hasPendingEvents():
app.processEvents()
pass
app.exec_()


#==========================================================================
#======================= Basic Tests ======================================
Expand Down

0 comments on commit 54d48dc

Please sign in to comment.