diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-05 21:16:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-05 21:16:46 +0000 |
commit | 29581f78bb43a7e8828ebd6e4031a84d374b797f (patch) | |
tree | b5593876ab4a890656132637c9429be6da697f43 /src/testing | |
parent | bc60f734a39e5ede6855bee039b346f6e55a13dd (diff) | |
download | gnunet-29581f78bb43a7e8828ebd6e4031a84d374b797f.tar.gz gnunet-29581f78bb43a7e8828ebd6e4031a84d374b797f.zip |
LRN: 0009-Fix-.exe-extension-in-topology-string.patch
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_testing_topology.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c index fd6e1847e..426e9a223 100644 --- a/src/testing/test_testing_topology.c +++ b/src/testing/test_testing_topology.c | |||
@@ -1250,6 +1250,9 @@ main (int argc, char *argv[]) | |||
1250 | topology_string = strstr (topology_string, "_"); | 1250 | topology_string = strstr (topology_string, "_"); |
1251 | GNUNET_assert (topology_string != NULL); | 1251 | GNUNET_assert (topology_string != NULL); |
1252 | topology_string++; | 1252 | topology_string++; |
1253 | topology_string = GNUNET_strdup (topology_string); | ||
1254 | if (strstr (topology_string, ".exe")) | ||
1255 | topology_string[strstr (topology_string, ".exe") - topology_string] = 0; | ||
1253 | 1256 | ||
1254 | GNUNET_asprintf (&our_binary_name, "test-testing-topology_%s", | 1257 | GNUNET_asprintf (&our_binary_name, "test-testing-topology_%s", |
1255 | topology_string); | 1258 | topology_string); |
@@ -1263,6 +1266,7 @@ main (int argc, char *argv[]) | |||
1263 | #endif | 1266 | #endif |
1264 | NULL); | 1267 | NULL); |
1265 | ret = check (); | 1268 | ret = check (); |
1269 | GNUNET_free (topology_string); | ||
1266 | 1270 | ||
1267 | /** | 1271 | /** |
1268 | * Need to remove base directory, subdirectories taken care | 1272 | * Need to remove base directory, subdirectories taken care |