summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-01-13 18:35:35 (GMT)
committerJason Evans <jasone@canonware.com>2017-01-13 22:49:24 (GMT)
commitffbb7dac3d669697ab8b39367994a58e0c1fa42d (patch)
tree9765e69b5048a990b72c6af86b89fac8814d8f62 /test/src
parent87e81e609b5d1bd8821d7256208091c546e62c5a (diff)
downloadjemalloc-ffbb7dac3d669697ab8b39367994a58e0c1fa42d.zip
jemalloc-ffbb7dac3d669697ab8b39367994a58e0c1fa42d.tar.gz
jemalloc-ffbb7dac3d669697ab8b39367994a58e0c1fa42d.tar.bz2
Remove leading blank lines from function bodies.
This resolves #535.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/btalloc.c1
-rw-r--r--test/src/mq.c1
-rw-r--r--test/src/mtx.c4
-rw-r--r--test/src/test.c4
-rw-r--r--test/src/thd.c3
-rw-r--r--test/src/timer.c2
6 files changed, 0 insertions, 15 deletions
diff --git a/test/src/btalloc.c b/test/src/btalloc.c
index 9a253d9..a78cb89 100644
--- a/test/src/btalloc.c
+++ b/test/src/btalloc.c
@@ -3,6 +3,5 @@
void *
btalloc(size_t size, unsigned bits)
{
-
return (btalloc_0(size, bits));
}
diff --git a/test/src/mq.c b/test/src/mq.c
index 40b31c1..47f362c 100644
--- a/test/src/mq.c
+++ b/test/src/mq.c
@@ -7,7 +7,6 @@
void
mq_nanosleep(unsigned ns)
{
-
assert(ns <= 1000*1000*1000);
#ifdef _WIN32
diff --git a/test/src/mtx.c b/test/src/mtx.c
index 8a5dfdd..bbfec4a 100644
--- a/test/src/mtx.c
+++ b/test/src/mtx.c
@@ -7,7 +7,6 @@
bool
mtx_init(mtx_t *mtx)
{
-
#ifdef _WIN32
if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT))
return (true);
@@ -33,7 +32,6 @@ mtx_init(mtx_t *mtx)
void
mtx_fini(mtx_t *mtx)
{
-
#ifdef _WIN32
#elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
#elif (defined(JEMALLOC_OSSPIN))
@@ -45,7 +43,6 @@ mtx_fini(mtx_t *mtx)
void
mtx_lock(mtx_t *mtx)
{
-
#ifdef _WIN32
EnterCriticalSection(&mtx->lock);
#elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
@@ -60,7 +57,6 @@ mtx_lock(mtx_t *mtx)
void
mtx_unlock(mtx_t *mtx)
{
-
#ifdef _WIN32
LeaveCriticalSection(&mtx->lock);
#elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
diff --git a/test/src/test.c b/test/src/test.c
index d70cc75..345cc1c 100644
--- a/test/src/test.c
+++ b/test/src/test.c
@@ -34,7 +34,6 @@ test_fail(const char *format, ...)
static const char *
test_status_string(test_status_t test_status)
{
-
switch (test_status) {
case test_status_pass: return "pass";
case test_status_skip: return "skip";
@@ -46,7 +45,6 @@ test_status_string(test_status_t test_status)
void
p_test_init(const char *name)
{
-
test_count++;
test_status = test_status_pass;
test_name = name;
@@ -55,7 +53,6 @@ p_test_init(const char *name)
void
p_test_fini(void)
{
-
test_counts[test_status]++;
malloc_printf("%s: %s\n", test_name, test_status_string(test_status));
}
@@ -127,7 +124,6 @@ p_test_no_malloc_init(test_t *t, ...)
void
p_test_fail(const char *prefix, const char *message)
{
-
malloc_cprintf(NULL, NULL, "%s%s\n", prefix, message);
test_status = test_status_fail;
}
diff --git a/test/src/thd.c b/test/src/thd.c
index c9d0065..e316708 100644
--- a/test/src/thd.c
+++ b/test/src/thd.c
@@ -13,7 +13,6 @@ thd_create(thd_t *thd, void *(*proc)(void *), void *arg)
void
thd_join(thd_t thd, void **ret)
{
-
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) {
DWORD exit_code;
GetExitCodeThread(thd, (LPDWORD) &exit_code);
@@ -25,7 +24,6 @@ thd_join(thd_t thd, void **ret)
void
thd_create(thd_t *thd, void *(*proc)(void *), void *arg)
{
-
if (pthread_create(thd, NULL, proc, arg) != 0)
test_fail("Error in pthread_create()\n");
}
@@ -33,7 +31,6 @@ thd_create(thd_t *thd, void *(*proc)(void *), void *arg)
void
thd_join(thd_t thd, void **ret)
{
-
pthread_join(thd, ret);
}
#endif
diff --git a/test/src/timer.c b/test/src/timer.c
index 3c7e63a..82f69d0 100644
--- a/test/src/timer.c
+++ b/test/src/timer.c
@@ -3,7 +3,6 @@
void
timer_start(timedelta_t *timer)
{
-
nstime_init(&timer->t0, 0);
nstime_update(&timer->t0);
}
@@ -11,7 +10,6 @@ timer_start(timedelta_t *timer)
void
timer_stop(timedelta_t *timer)
{
-
nstime_copy(&timer->t1, &timer->t0);
nstime_update(&timer->t1);
}