Skip to content

Commit 04ad98b

Browse files
spetruniaSergei Krivonos
authored andcommitted
MDEV-23766: Re-add Json_writer unit test.
1 parent c1e1ca2 commit 04ad98b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

unittest/sql/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ TARGET_LINK_LIBRARIES(mf_iocache-t mysys mytap mysys_ssl)
3737
ADD_DEPENDENCIES(mf_iocache-t GenError)
3838
MY_ADD_TEST(mf_iocache)
3939

40+
# Json writer needs String which needs sql library
41+
ADD_EXECUTABLE(my_json_writer-t my_json_writer-t.cc dummy_builtins.cc)
42+
TARGET_LINK_LIBRARIES(my_json_writer-t sql mytap)
43+
MY_ADD_TEST(my_json_writer)

unittest/sql/my_json_writer-t.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,13 @@ int main(int args, char **argv)
105105
ok(w.invalid_json, "Named array in an array");
106106
}
107107

108-
// BAD:
109108
{
110109
Json_writer w;
111110
w.start_array();
112111
w.end_object();
113112
ok(w.invalid_json, "JSON object end of array");
114113
}
115114

116-
// BAD:
117115
{
118116
Json_writer w;
119117
w.start_object();

0 commit comments

Comments
 (0)