[libvirt] [PATCH] virstoragetest: Don't run the test on 32 bit arches

Martin Kletzander mkletzan at redhat.com
Tue Apr 29 08:57:50 UTC 2014


On Tue, Apr 29, 2014 at 10:45:56AM +0200, Jiri Denemark wrote:
>On Tue, Apr 29, 2014 at 10:36:51 +0200, Michal Privoznik wrote:
>> Currently, there's an issue with virStrToLong_* APIs that they turn
>> "-1" into UINT_MAX. While this is not acceptable, it works on 64 bit
>> architectures and doesn't work on 32 bit ones. I know that much
>> cleaner solution is required, but given that we are in the freeze we
>> may as well just skip the test on 32 bits.
>
>I think a workaround using strtoull instead of stroul in virStrToLong_ui
>would be better, even though I don't like that solution either. Your
>workaround disables the check but keeps the functionality which is
>tested here broken.
>

Moreover, Pavel found out that strtoul should set errno to ERANGE in
case of the problem described here.  The only problem is that we *are*
checking for errno there and it just passes :(

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140429/101b80c2/attachment-0001.sig>


More information about the libvir-list mailing list