Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
faa4d4fc
Commit
faa4d4fc
authored
14 years ago
by
Bill King
Browse files
Options
Downloads
Patches
Plain Diff
tests: Remove unused testcase
parent
19aa3197
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/auto/debugger/debugger.pro
+1
-1
1 addition, 1 deletion
tests/auto/debugger/debugger.pro
tests/auto/debugger/plugin.pro
+0
-12
0 additions, 12 deletions
tests/auto/debugger/plugin.pro
tests/auto/debugger/tst_plugin.cpp
+0
-125
0 additions, 125 deletions
tests/auto/debugger/tst_plugin.cpp
with
1 addition
and
138 deletions
tests/auto/debugger/debugger.pro
+
1
−
1
View file @
faa4d4fc
TEMPLATE
=
subdirs
SUBDIRS
=
dumpers
.
pro
plugin
.
pro
version
.
pro
SUBDIRS
=
dumpers
.
pro
version
.
pro
!
win32
-
msvc
*:
SUBDIRS
+=
gdb
.
pro
This diff is collapsed.
Click to expand it.
tests/auto/debugger/plugin.pro
deleted
100644 → 0
+
0
−
12
View file @
19aa3197
include
(..
/
qttest
.
pri
)
DEBUGGERDIR
=
$$
IDE_SOURCE_TREE
/
src
/
plugins
/
debugger
UTILSDIR
=
$$
IDE_SOURCE_TREE
/
src
/
libs
MACROSDIR
=
$$
IDE_SOURCE_TREE
/
share
/
qtcreator
/
gdbmacros
SOURCES
+=
\
tst_plugin
.
cpp
\
DEFINES
+=
MACROSDEBUG
INCLUDEPATH
+=
$$
DEBUGGERDIR
$$
UTILSDIR
$$
MACROSDIR
This diff is collapsed.
Click to expand it.
tests/auto/debugger/tst_plugin.cpp
deleted
100644 → 0
+
0
−
125
View file @
19aa3197
#include
<ctype.h>
#include
<QtCore/QObject>
#include
<QtCore/QProcess>
#include
<QtCore/QFileInfo>
#include
<QtCore/QMap>
#include
<QtCore/QMetaMethod>
#include
<QtCore/QModelIndex>
#if QT_VERSION >= 0x040500
#include
<QtCore/QSharedPointer>
#endif
#include
<QtCore/QStringList>
#include
<QtCore/QTextCodec>
#include
<QtGui/QApplication>
#include
<QtGui/QDialog>
#include
<QtGui/QImage>
#include
<QtGui/QPixmap>
#include
<QtGui/QStandardItemModel>
#include
<QtGui/QStringListModel>
#include
<QtTest/QtTest>
//#include <QtTest/qtest_gui.h>
#include
<QtCore/private/qobject_p.h>
#include
"gdb/gdbmi.h"
#include
"gdbmacros.h"
#include
"gdbmacros_p.h"
#undef NS
#ifdef QT_NAMESPACE
# define STRINGIFY0(s) #s
# define STRINGIFY1(s) STRINGIFY0(s)
# define NS STRINGIFY1(QT_NAMESPACE) "::"
#else
# define NS ""
#endif
using
namespace
Debugger
;
using
namespace
Debugger
::
Internal
;
static
QByteArray
stripped
(
QByteArray
ba
)
{
for
(
int
i
=
ba
.
size
();
--
i
>=
0
;
)
{
if
(
ba
.
at
(
i
)
==
'\n'
||
ba
.
at
(
i
)
==
' '
)
ba
.
chop
(
1
);
else
break
;
}
return
ba
;
}
class
tst_Plugin
:
public
QObject
{
Q_OBJECT
public:
tst_Plugin
()
{}
public
slots
:
void
runQtc
();
public
slots
:
void
readStandardOutput
();
void
readStandardError
();
private
:
QProcess
m_proc
;
// the Qt Creator process
};
void
tst_Plugin
::
readStandardOutput
()
{
qDebug
()
<<
"qtcreator-out: "
<<
stripped
(
m_proc
.
readAllStandardOutput
());
}
void
tst_Plugin
::
readStandardError
()
{
qDebug
()
<<
"qtcreator-err: "
<<
stripped
(
m_proc
.
readAllStandardError
());
}
void
tst_Plugin
::
runQtc
()
{
QString
test
=
QFileInfo
(
qApp
->
arguments
().
at
(
0
)).
absoluteFilePath
();
// FIXME: this is utterly broken...
QString
qtc
=
QFileInfo
(
test
).
absolutePath
()
+
"/../../../bin/qtcreator.bin"
;
qtc
=
QFileInfo
(
qtc
).
absoluteFilePath
();
QStringList
env
=
QProcess
::
systemEnvironment
();
env
.
append
(
"QTC_DEBUGGER_TEST="
+
test
);
m_proc
.
setEnvironment
(
env
);
connect
(
&
m_proc
,
SIGNAL
(
readyReadStandardOutput
()),
this
,
SLOT
(
readStandardOutput
()));
connect
(
&
m_proc
,
SIGNAL
(
readyReadStandardError
()),
this
,
SLOT
(
readStandardError
()));
m_proc
.
start
(
qtc
);
m_proc
.
waitForStarted
();
QCOMPARE
(
m_proc
.
state
(),
QProcess
::
Running
);
m_proc
.
waitForFinished
();
QCOMPARE
(
m_proc
.
state
(),
QProcess
::
NotRunning
);
}
void
runDebuggee
()
{
qDebug
()
<<
"RUNNING DEBUGGEE"
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
QCoreApplication
app
(
argc
,
argv
);
QStringList
args
=
app
.
arguments
();
if
(
args
.
size
()
==
2
&&
args
.
at
(
1
)
==
"--run-debuggee"
)
{
runDebuggee
();
app
.
exec
();
return
0
;
}
tst_Plugin
test
;
return
QTest
::
qExec
(
&
test
,
argc
,
argv
);
}
#include
"tst_plugin.moc"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment