Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
58c82e03
Commit
58c82e03
authored
May 05, 2010
by
hjk
Browse files
Revert "Get rid of tcf/json in the autotests, too."
This reverts commit
3aa358de
.
parent
19ece942
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/auto/debugger/dumpers.pro
View file @
58c82e03
...
...
@@ -6,6 +6,7 @@ MACROSDIR = ../../../share/qtcreator/gdbmacros
SOURCES
+=
\
$$
DEBUGGERDIR
/
gdb
/
gdbmi
.
cpp
\
$$
DEBUGGERDIR
/
tcf
/
json
.
cpp
\
$$
MACROSDIR
/
gdbmacros
.
cpp
\
tst_dumpers
.
cpp
\
...
...
tests/auto/debugger/tst_dumpers.cpp
View file @
58c82e03
#include "gdb/gdbmi.h"
#include "tcf/json.h"
#include "gdbmacros.h"
#include "gdbmacros_p.h"
...
...
@@ -91,6 +92,10 @@ static const char gdbmi12[] =
"numchild=
\"
0
\"
}]"
;
static
const
char
jsont1
[]
=
"{
\"
Size
\"
:100564,
\"
UID
\"
:0,
\"
GID
\"
:0,
\"
Permissions
\"
:33261,"
"
\"
ATime
\"
:1242370878000,
\"
MTime
\"
:1239154689000}"
;
struct
Int3
{
Int3
()
{
i1
=
42
;
i2
=
43
;
i3
=
44
;
}
int
i1
,
i2
,
i3
;
...
...
@@ -116,6 +121,12 @@ public:
'\n'
+
QString
(
input
));
}
void
testJson
(
const
char
*
input
)
{
QCOMPARE
(
'\n'
+
QString
::
fromLatin1
(
JsonValue
(
input
).
toString
(
false
)),
'\n'
+
QString
(
input
));
}
private
slots
:
void
mi1
()
{
testMi
(
gdbmi1
);
}
void
mi2
()
{
testMi
(
gdbmi2
);
}
...
...
@@ -128,6 +139,8 @@ private slots:
void
mi11
()
{
testMi
(
gdbmi11
);
}
//void mi12() { testMi(gdbmi12); }
void
json1
()
{
testJson
(
jsont1
);
}
void
infoBreak
();
void
niceType
();
void
niceType_data
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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