summaryrefslogtreecommitdiff
path: root/test/messages_send_sms_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/messages_send_sms_test.c')
-rwxr-xr-x[-rw-r--r--]test/messages_send_sms_test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/messages_send_sms_test.c b/test/messages_send_sms_test.c
index d54cc53..6d385d8 100644..100755
--- a/test/messages_send_sms_test.c
+++ b/test/messages_send_sms_test.c
@@ -1,9 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
+#include <dlog.h>
#include <messages.h>
-#define TEST_NUMBER "00000000000"
+#define TEST_NUMBER "447810507326"
void _sent_cb(messages_sending_result_e result, void *user_data)
{
@@ -19,14 +20,14 @@ int main(int argc, char *argv[])
// open service
ret = messages_open_service(&svc);
if (MESSAGES_ERROR_NONE != ret) {
- printf("error: messages_open_service() = %d", ret);
+ dlog_print(DLOG_DEBUG, "MESSAGE_TEST", "error: messages_open_service() = %d", ret);
return 1;
}
// create message
ret = messages_create_message(MESSAGES_TYPE_SMS, &msg);
if (MESSAGES_ERROR_NONE != ret) {
- printf("error: messages_create_message() = %d", ret);
+ dlog_print(DLOG_DEBUG, "MESSAGE_TEST", "error: messages_create_message() = %d", ret);
return 1;
}
@@ -36,7 +37,7 @@ int main(int argc, char *argv[])
// send message
ret = messages_send_message(svc, msg, true, _sent_cb, NULL);
if (MESSAGES_ERROR_NONE != ret) {
- printf("error: messages_send_message() = %d", ret);
+ dlog_print(DLOG_DEBUG, "MESSAGE_TEST", "error: messages_send_message() = %d", ret);
return 1;
}