[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libfints] branch master updated: Check return code of INI
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libfints] branch master updated: Check return code of INI at tests. |
Date: |
Mon, 15 Oct 2018 17:01:09 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libfints.
The following commit(s) were added to refs/heads/master by this push:
new 4ff02a6 Check return code of INI at tests.
4ff02a6 is described below
commit 4ff02a63f7e4da9defa1aab76b204b2d29f98435
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Oct 15 17:00:48 2018 +0200
Check return code of INI at tests.
---
src/tests.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/tests.c b/src/tests.c
index 76885b1..66dea59 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -57,6 +57,8 @@ main (int argc,
{
#define KEYS_DIR "./test_keys"
+ struct EBICS_genex_document *msg;
+
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
@@ -70,14 +72,24 @@ main (int argc,
if (EBICS_SUCCESS != EBICS_init_library (KEYS_DIR,
key_filenames))
{
- LOG (EBICS_LOGLEVEL_ERROR, "Lib not init\n");
+ LOG (EBICS_LOGLEVEL_ERROR,
+ "Lib not init\n");
+ return EBICS_ERROR;
+ }
+
+
+ /**
+ * INI
+ */
+ if (NULL == (msg = EBICS_generate_message_ini
+ (&header_args,
+ &ini_args)))
+ {
+ LOG (EBICS_LOGLEVEL_ERROR,
+ "Failed to instantiate INI message\n");
return EBICS_ERROR;
}
- EBICS_generate_message_ini (&header_args,
- &ini_args);
-
EBICS_close_library ();
-
return EBICS_SUCCESS;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libfints] branch master updated: Check return code of INI at tests.,
gnunet <=