mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
[Unit-tests] Fix previously defined AM_* in tests.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user