Menu

#2 char assumed signed in testsuite drivers

open
nobody
None
5
2008-03-11
2008-03-11
Martin Guy
No

Hi
There is a bug in test/rdbx_driver.c and test/srtp_driver.c which makes the testsuite always fail on architectures where char is unsigned by default. This breaks the Debian builds for all such architectures (arm in my case).

The symptom is that test/rdbx_driver and test/srtp_driver always output their usage message and fail because

main (int argc, char *argv[]) {
char q;

/* process input arguments */
while (1) {
q = getopt_s(argc, argv, "tv");
if (q == -1)
break;

That should be "int q;"

Discussion

  • Martin Guy

    Martin Guy - 2008-03-11

    Logged In: YES
    user_id=910454
    Originator: YES

    Oops, I just spotted the same bug in test/dtls_srtp_driver.c as well.

     
  • Nobody/Anonymous

    These should be fixed in current CVS.

     
  • Jonathan Lennox

    Jonathan Lennox - 2010-05-27

    Sorry, forgot to log in -- previous comment was me.

     

Log in to post a comment.

MongoDB Logo MongoDB