tests: Replace ssh_buffer_free() with SSH_BUFFER_FREE()
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
ca7da823c3
Коммит
79e907402e
@ -22,7 +22,7 @@ static int setup(void **state) {
|
||||
}
|
||||
|
||||
static int teardown(void **state) {
|
||||
ssh_buffer_free(*state);
|
||||
SSH_BUFFER_FREE(*state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -127,7 +127,7 @@ static void torture_ssh_buffer_get_ssh_string(void **state) {
|
||||
assert_null(str);
|
||||
SSH_STRING_FREE(str);
|
||||
}
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ static void *thread_growing_buffer(void *threadid)
|
||||
}
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -134,14 +134,14 @@ static void *thread_growing_buffer_shifting(void *threadid)
|
||||
if (ssh_buffer_get_len(buffer) * 4 < buffer->allocated) {
|
||||
assert_true(ssh_buffer_get_len(buffer) * 4 >= buffer->allocated);
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -198,7 +198,7 @@ static void *thread_buffer_prepend(void *threadid)
|
||||
assert_memory_equal(ssh_buffer_get(buffer), "12345bcdef", 10);
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -249,7 +249,7 @@ static void *thread_ssh_buffer_get_ssh_string(void *threadid)
|
||||
assert_null(str);
|
||||
SSH_STRING_FREE(str);
|
||||
}
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -319,7 +319,7 @@ static void *thread_ssh_buffer_add_format(void *threadid)
|
||||
SSH_STRING_FREE(s);
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -397,7 +397,7 @@ static void *thread_ssh_buffer_get_format(void *threadid) {
|
||||
SAFE_FREE(s2);
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -458,7 +458,7 @@ static void *thread_ssh_buffer_get_format_error(void *threadid)
|
||||
assert_true(s2 == NULL);
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
@ -514,7 +514,7 @@ static void *thread_buffer_pack_badformat(void *threadid)
|
||||
* it could crash the process */
|
||||
|
||||
/* Teardown */
|
||||
ssh_buffer_free(buffer);
|
||||
SSH_BUFFER_FREE(buffer);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user