On Fri, Oct 7, 2011 at 11:28 AM, Diego Biurrun <email address hidden> wrote:
> On Fri, Oct 07, 2011 at 09:20:31AM +0000, David Martin wrote:
>>
>> --- test/lib/core/hostid.c 2011-09-05 08:46:53 +0000
>> +++ test/lib/core/hostid.c 2011-10-07 09:19:23 +0000
>> @@ -65,7 +65,7 @@
>> START_TEST(test_serialize_deserialize_rsa_keys)
>> {
>> unsigned int i, keyrr_len = 0;
>> - int bits[3] = {1024, 2048, 3072};
>> + int bits[3] = { 1024, 2048, 3072 };
>> RSA *key = NULL, *key_deserialized = NULL;
>
> This you can push anytime.
kk, will do so later.
>> @@ -126,6 +126,11 @@
>>
>> TCase *tc_core = tcase_create("Core");
>> + // the default test timeout of 4 seconds is too short,
>> + // generating keys in scratchbox or on the N900 takes
>> + // a while
>
> nit: no need to break the second line and /* */ comments are preferred
will fix that.
>> + tcase_set_timeout(tc_core, 120);
>
> I wonder if we should not set this in a slightly more global place.
Hi,
On Fri, Oct 7, 2011 at 11:28 AM, Diego Biurrun <email address hidden> wrote:
> On Fri, Oct 07, 2011 at 09:20:31AM +0000, David Martin wrote: core/hostid. c 2011-09-05 08:46:53 +0000 core/hostid. c 2011-10-07 09:19:23 +0000 test_serialize_ deserialize_ rsa_keys)
>>
>> --- test/lib/
>> +++ test/lib/
>> @@ -65,7 +65,7 @@
>> START_TEST(
>> {
>> unsigned int i, keyrr_len = 0;
>> - int bits[3] = {1024, 2048, 3072};
>> + int bits[3] = { 1024, 2048, 3072 };
>> RSA *key = NULL, *key_deserialized = NULL;
>
> This you can push anytime.
kk, will do so later.
>> @@ -126,6 +126,11 @@ "Core") ;
>>
>> TCase *tc_core = tcase_create(
>> + // the default test timeout of 4 seconds is too short,
>> + // generating keys in scratchbox or on the N900 takes
>> + // a while
>
> nit: no need to break the second line and /* */ comments are preferred
will fix that.
>> + tcase_set_ timeout( tc_core, 120);
>
> I wonder if we should not set this in a slightly more global place.
Well, we can set it in a global variable (see the manual check.sourcefor ge.net/ doc/check_ html/check_ 4.html# SEC19 )
http://
The key generation seems to be the exception though with taking such
a long time.