All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markos Chandras <Markos.Chandras@imgtec.com>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] {tcp_cmds/echo, math/float}: Include missing usctest.h header
Date: Thu, 9 Feb 2012 15:51:29 +0000	[thread overview]
Message-ID: <4F33EB81.3010905@imgtec.com> (raw)
In-Reply-To: <1328184278-19777-1-git-send-email-markos.chandras@imgtec.com>

On 02/02/2012 12:04 PM, Markos Chandras wrote:

> The tst_print function is using the TEST_ERRNO symbol which is declared
> as 'extern int' on usctest.h header when _USC_LIB_ macro is used and as 'int'
> when this macro is not defined. We need to include this header on float and
> echoes tests to ensure that TEST_ERRNO has been defined before calling
> the tst_print function. Without this header, the compilation will fail with
> an undefined symbol error.
> 
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> ---
>  testcases/misc/math/float/main.c         |    1 +
>  testcases/network/tcp_cmds/echo/echoes.c |    3 ++-
>  2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/testcases/misc/math/float/main.c b/testcases/misc/math/float/main.c
> index 8998c33..870661b 100644
> --- a/testcases/misc/math/float/main.c
> +++ b/testcases/misc/math/float/main.c
> @@ -26,6 +26,7 @@
>  #include "tfloat.h"
> 
>  #include "test.h"
> +#include "usctest.h"
> 
>  #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } }
>  /* LTP status reporting */
> diff --git a/testcases/network/tcp_cmds/echo/echoes.c b/testcases/network/tcp_cmds/echo/echoes.c
> index 877cfa5..2ce7968 100644
> --- a/testcases/network/tcp_cmds/echo/echoes.c
> +++ b/testcases/network/tcp_cmds/echo/echoes.c
> @@ -29,6 +29,7 @@
>  #include <fcntl.h>
>  #include "test.h"
>  #include "netdefs.h"
> +#include "usctest.h"
> 
>  #if INET6
>  char *TCID = "echoes6";
> @@ -372,4 +373,4 @@ void
>  cleanup(int s)
>  {
>  	close(s);
> -}
> \ No newline at end of file
> +}
> --
> 1.7.1
> 


Ping? Just making sure this patch reached the list this time.

-- 
markos


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2012-02-09 15:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 12:04 [LTP] [PATCH] {tcp_cmds/echo, math/float}: Include missing usctest.h header Markos Chandras
2012-02-09 15:51 ` Markos Chandras [this message]
2012-02-09 16:14   ` Cyril Hrubis
     [not found] <1326106637-5173-1-git-send-email-markos.chandras@imgtec.com>
2012-01-26 10:15 ` Markos Chandras
2012-01-26 14:10   ` Cyril Hrubis
     [not found]     ` <4F22B4CA.8060507@imgtec.com>
2012-02-01 16:20       ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F33EB81.3010905@imgtec.com \
    --to=markos.chandras@imgtec.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.