Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Morten Volden
kdevelop
Commits
cca69446
Commit
cca69446
authored
Jul 13, 2016
by
Kevin Funk
☕
Browse files
test_custombuildsystemplugin: Don't segfault
parent
5be0ce2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
projectmanagers/custom-buildsystem/tests/test_custombuildsystemplugin.cpp
View file @
cca69446
...
...
@@ -63,9 +63,7 @@ void TestCustomBuildSystemPlugin::loadSimpleProject()
KDevSignalSpy
*
projectSpy
=
new
KDevSignalSpy
(
ICore
::
self
()
->
projectController
(),
SIGNAL
(
projectOpened
(
KDevelop
::
IProject
*
)
)
);
ICore
::
self
()
->
projectController
()
->
openProject
(
projecturl
);
// Wait for the project to be opened
if
(
!
projectSpy
->
wait
(
20000
)
)
{
qFatal
(
"Expected project to be loaded within 20 seconds, but this didn't happen"
);
}
QVERIFY
(
projectSpy
->
wait
(
10000
));
IProject
*
project
=
ICore
::
self
()
->
projectController
()
->
findProjectByName
(
"SimpleProject"
);
QVERIFY
(
project
);
...
...
@@ -79,9 +77,7 @@ void TestCustomBuildSystemPlugin::buildDirProject()
KDevSignalSpy
*
projectSpy
=
new
KDevSignalSpy
(
ICore
::
self
()
->
projectController
(),
SIGNAL
(
projectOpened
(
KDevelop
::
IProject
*
)
)
);
ICore
::
self
()
->
projectController
()
->
openProject
(
projecturl
);
// Wait for the project to be opened
if
(
!
projectSpy
->
wait
(
20000
)
)
{
qFatal
(
"Expected project to be loaded within 20 seconds, but this didn't happen"
);
}
QVERIFY
(
projectSpy
->
wait
(
10000
));
IProject
*
project
=
ICore
::
self
()
->
projectController
()
->
findProjectByName
(
"BuilddirProject"
);
QVERIFY
(
project
);
...
...
@@ -97,9 +93,7 @@ void TestCustomBuildSystemPlugin::loadMultiPathProject()
KDevSignalSpy
*
projectSpy
=
new
KDevSignalSpy
(
ICore
::
self
()
->
projectController
(),
SIGNAL
(
projectOpened
(
KDevelop
::
IProject
*
)
)
);
ICore
::
self
()
->
projectController
()
->
openProject
(
projecturl
);
// Wait for the project to be opened
if
(
!
projectSpy
->
wait
(
20000
)
)
{
qFatal
(
"Expected project to be loaded within 20 seconds, but this didn't happen"
);
}
QVERIFY
(
projectSpy
->
wait
(
10000
));
IProject
*
project
=
ICore
::
self
()
->
projectController
()
->
findProjectByName
(
"MultiPathProject"
);
QVERIFY
(
project
);
KDevelop
::
ProjectBaseItem
*
mainfile
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment