[Unit-tests] Fix previously defined AM_* in tests.

This commit is contained in:
s3rj1k
2021-02-23 19:59:26 +02:00
committed by GitHub
parent 3556119fde
commit 91f12b5920
12 changed files with 30 additions and 54 deletions

View File

@@ -29,7 +29,6 @@
*
*/
#include <stdio.h>
#include <switch.h>
#include <test/switch_test.h>
@@ -65,6 +64,7 @@ FST_TEST_END()
FST_TEST_BEGIN(b64)
{
switch_size_t size;
char *str = "ABC";
unsigned char b64_str[6];
char decoded_str[4];
@@ -73,7 +73,7 @@ FST_TEST_BEGIN(b64)
fst_check(status == SWITCH_STATUS_SUCCESS);
fst_check_string_equals((const char *)b64_str, "QUJD");
switch_size_t size = switch_b64_decode((const char *)b64_str, decoded_str, sizeof(decoded_str));
size = switch_b64_decode((const char *)b64_str, decoded_str, sizeof(decoded_str));
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "decoded_str: %s\n", decoded_str);
fst_check_string_equals(decoded_str, str);
fst_check(size == 4);