1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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.
This commit is contained in:
Souradeep Saha
2024-06-27 00:18:39 +00:00
committed by Daniel Black
parent d83742622d
commit 4dde925f54
28 changed files with 479 additions and 494 deletions

View File

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

View File

@@ -163,4 +163,3 @@ int main(int argc __attribute__((unused)),char *argv[])
my_end(0);
return exit_status();
}

View File

@@ -123,8 +123,8 @@ void temp_io_cache()
diag("temp io_cache with%s encryption", encrypt_tmp_files?"":"out");
init_io_cache_encryption();
init_io_cache_encryption();
res= open_cached_file(&info, 0, 0, CACHE_SIZE, 0);
ok(res == 0, "open_cached_file" INFO_TAIL);

View File

@@ -29,9 +29,9 @@
A fake THD with enter_cond/exit_cond and some other members.
*/
PSI_stage_info stage_show_explain;
class THD
class THD
{
mysql_mutex_t* thd_mutex;
mysql_mutex_t* thd_mutex;
public:
bool killed;
@@ -81,7 +81,7 @@ int int_rand(int size)
return (int) (0.5 + ((double)rand() / RAND_MAX) * size);
}
/*
/*
APC target thread (the one that will serve the APC requests). We will have
one target.
*/
@@ -119,7 +119,7 @@ void *test_apc_service_thread(void *ptr)
class Apc_order : public Apc_target::Apc_call
{
public:
int value; // The value
int value; // The value
int *where_to; // Where to write it
Apc_order(int a, int *b) : value(a), where_to(b) {}
@@ -202,7 +202,7 @@ int main(int args, char **argv)
my_sleep(1000);
for (i = 0; i < N_THREADS; i++)
pthread_create(&request_thr[i], NULL, test_apc_requestor_thread, (void*)NULL);
for (i = 0; i < 15; i++)
{
my_sleep(500*1000);
@@ -212,7 +212,7 @@ int main(int args, char **argv)
requestors_should_exit= TRUE;
for (i = 0; i < N_THREADS; i++)
pthread_join(request_thr[i], NULL);
diag("Shutting down service");
service_should_exit= TRUE;
pthread_join(service_thr, NULL);
@@ -226,4 +226,3 @@ int main(int args, char **argv)
ok1(!have_errors);
return exit_status();
}

View File

@@ -30,7 +30,7 @@ class Json_writer;
/* Several fake objects */
class Opt_trace
class Opt_trace
{
public:
void enable_tracing_if_required() {}
@@ -38,7 +38,7 @@ public:
Json_writer *get_current_json() { return nullptr; }
};
class THD
class THD
{
public:
Opt_trace opt_trace;
@@ -60,7 +60,7 @@ int main(int args, char **argv)
{
Json_writer w;
w.start_object();
w.add_member("foo");
w.add_member("foo");
w.end_object();
ok(w.invalid_json, "Started a name but didn't add a value");
}
@@ -143,4 +143,3 @@ int main(int args, char **argv)
return exit_status();
}