Skip to content

Commit 4dde925

Browse files
SouradeepSahagrooverdan
authored andcommitted
Cleanup Whitespace in unittest/ directory
Cleanup unnecessary whitespace at the end of lines and end of files in the unittest/ directory. Note that all code changes are non-functional. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
1 parent d837426 commit 4dde925

28 files changed

+479
-494
lines changed

unittest/examples/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
2-
#
2+
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation; version 2 of the License.
6-
#
6+
#
77
# This program is distributed in the hope that it will be useful,
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
# GNU General Public License for more details.
11-
#
11+
#
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA

unittest/examples/no_plan-t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2006, 2010, Oracle and/or its affiliates
1+
/* Copyright (c) 2006, 2010, Oracle and/or its affiliates
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by

unittest/examples/simple-t.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ int main() {
5050
ok(failed == 0, "Testing gcs()");
5151
return exit_status();
5252
}
53-

unittest/json_lib/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
2-
#
2+
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation; version 2 of the License.
6-
#
6+
#
77
# This program is distributed in the hope that it will be useful,
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
# GNU General Public License for more details.
11-
#
11+
#
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA

unittest/json_lib/json_lib-t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ test_path_parsing()
116116
json_path_t p;
117117
if (json_path_setup(&p, ci, s_e(p0)))
118118
return;
119-
ok(p.last_step - p.steps == 4 &&
119+
ok(p.last_step - p.steps == 4 &&
120120
p.steps[0].type == JSON_PATH_ARRAY_WILD &&
121121
p.steps[1].type == JSON_PATH_KEY &&
122122
p.steps[2].type == JSON_PATH_ARRAY && p.steps[2].n_item == 12 &&

unittest/my_decimal/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
2-
#
2+
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation; version 2 of the License.
6-
#
6+
#
77
# This program is distributed in the hope that it will be useful,
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
# GNU General Public License for more details.
11-
#
11+
#
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA

unittest/mysys/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
2-
#
2+
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation; version 2 of the License.
6-
#
6+
#
77
# This program is distributed in the hope that it will be useful,
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
# GNU General Public License for more details.
11-
#
11+
#
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
@@ -25,4 +25,3 @@ MY_ADD_TESTS(ma_dyncol LINK_LIBRARIES mysys)
2525
IF(WIN32)
2626
MY_ADD_TESTS(my_delete LINK_LIBRARIES mysys)
2727
ENDIF()
28-

unittest/mysys/dynstring-t.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ int main(void)
7171

7272
return exit_status();
7373
}
74-

unittest/mysys/lf-t.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,3 @@ void do_tests()
196196
lf_hash_destroy(&lf_hash);
197197
lf_alloc_destroy(&lf_allocator);
198198
}
199-

unittest/mysys/my_delete-t.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ int main(int argc __attribute__((unused)),char *argv[])
3535

3636
/* Delete an open file */
3737
ok(GetTempFileNameA(tmp_dir, "foo", 0, tmp_filename) != 0, "create temp file 2");
38-
h = CreateFileA(tmp_filename, GENERIC_READ|GENERIC_WRITE,
38+
h = CreateFileA(tmp_filename, GENERIC_READ|GENERIC_WRITE,
3939
FILE_SHARE_DELETE, NULL, OPEN_EXISTING, 0, NULL);
4040
ok (h != INVALID_HANDLE_VALUE || h != 0, "open temp file");
4141
ok(my_delete(tmp_filename, MYF(0)) == 0, "Delete open file");
4242

4343

44-
/*
45-
Check if it is possible to reuse file name after delete (not all handles
44+
/*
45+
Check if it is possible to reuse file name after delete (not all handles
4646
to it are closed.
4747
*/
48-
h2 = CreateFileA(tmp_filename, GENERIC_READ|GENERIC_WRITE,
48+
h2 = CreateFileA(tmp_filename, GENERIC_READ|GENERIC_WRITE,
4949
FILE_SHARE_DELETE, NULL, CREATE_NEW, FILE_FLAG_DELETE_ON_CLOSE, NULL);
5050
ok(h2 != 0 && h2 != INVALID_HANDLE_VALUE, "Reuse file name");
5151
CloseHandle(h);
@@ -54,4 +54,3 @@ int main(int argc __attribute__((unused)),char *argv[])
5454
my_end(0);
5555
return exit_status();
5656
}
57-

0 commit comments

Comments
 (0)