diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-08-08 13:22:52 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-08-08 13:22:52 +0200 |
commit | 411da700dd0ff36573f581650ae457fdcc692f31 (patch) | |
tree | d7a476dc81ae8e85f1efc8b59b7ca63f8e488d01 /src | |
parent | 564a1945e84430e18c0c11e04492ed0fe5126ea2 (diff) | |
download | gnunet-411da700dd0ff36573f581650ae457fdcc692f31.tar.gz gnunet-411da700dd0ff36573f581650ae457fdcc692f31.zip |
-make new cmd tests experimental (segfalting); fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/identity/identity_api.c | 4 | ||||
-rw-r--r-- | src/transport/Makefile.am | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 3bbe0b957..22371f91a 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -1236,14 +1236,12 @@ GNUNET_IDENTITY_public_key_from_string (const char *str, | |||
1236 | struct GNUNET_IDENTITY_PublicKey *key) | 1236 | struct GNUNET_IDENTITY_PublicKey *key) |
1237 | { | 1237 | { |
1238 | enum GNUNET_GenericReturnValue ret; | 1238 | enum GNUNET_GenericReturnValue ret; |
1239 | enum GNUNET_IDENTITY_KeyType ktype; | ||
1240 | ret = GNUNET_STRINGS_string_to_data (str, | 1239 | ret = GNUNET_STRINGS_string_to_data (str, |
1241 | strlen (str), | 1240 | strlen (str), |
1242 | key, | 1241 | key, |
1243 | sizeof (*key)); | 1242 | sizeof (*key)); |
1244 | if (GNUNET_OK != ret) | 1243 | if (GNUNET_OK != ret) |
1245 | return GNUNET_SYSERR; | 1244 | return GNUNET_SYSERR; |
1246 | ktype = ntohl (key->type); | ||
1247 | return GNUNET_OK; | 1245 | return GNUNET_OK; |
1248 | 1246 | ||
1249 | } | 1247 | } |
@@ -1254,14 +1252,12 @@ GNUNET_IDENTITY_private_key_from_string (const char *str, | |||
1254 | struct GNUNET_IDENTITY_PrivateKey *key) | 1252 | struct GNUNET_IDENTITY_PrivateKey *key) |
1255 | { | 1253 | { |
1256 | enum GNUNET_GenericReturnValue ret; | 1254 | enum GNUNET_GenericReturnValue ret; |
1257 | enum GNUNET_IDENTITY_KeyType ktype; | ||
1258 | ret = GNUNET_STRINGS_string_to_data (str, | 1255 | ret = GNUNET_STRINGS_string_to_data (str, |
1259 | strlen (str), | 1256 | strlen (str), |
1260 | key, | 1257 | key, |
1261 | sizeof (*key)); | 1258 | sizeof (*key)); |
1262 | if (GNUNET_OK != ret) | 1259 | if (GNUNET_OK != ret) |
1263 | return GNUNET_SYSERR; | 1260 | return GNUNET_SYSERR; |
1264 | ktype = ntohl (key->type); | ||
1265 | return GNUNET_OK; | 1261 | return GNUNET_OK; |
1266 | } | 1262 | } |
1267 | 1263 | ||
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 55a338729..0782a631b 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -647,7 +647,6 @@ endif | |||
647 | if ENABLE_TEST_RUN | 647 | if ENABLE_TEST_RUN |
648 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | 648 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
649 | TESTS = \ | 649 | TESTS = \ |
650 | test_transport_api_cmd_simple_send \ | ||
651 | test_transport_address_switch_tcp \ | 650 | test_transport_address_switch_tcp \ |
652 | $(HTTP_SWITCH) \ | 651 | $(HTTP_SWITCH) \ |
653 | $(HTTPS_SWITCH) \ | 652 | $(HTTPS_SWITCH) \ |
@@ -707,6 +706,7 @@ test_transport_api_slow_ats | |||
707 | endif | 706 | endif |
708 | if HAVE_EXPERIMENTAL | 707 | if HAVE_EXPERIMENTAL |
709 | TESTS += \ | 708 | TESTS += \ |
709 | test_transport_api_cmd_simple_send \ | ||
710 | test_transport_address_switch_udp \ | 710 | test_transport_address_switch_udp \ |
711 | test_plugin_udp \ | 711 | test_plugin_udp \ |
712 | test_transport_api_udp \ | 712 | test_transport_api_udp \ |