Skip to content

Commit

Permalink
tests: Test flb_strerror_r() when strerror_s(3) is found.
Browse files Browse the repository at this point in the history
Signed-off-by: Seigo Tanimura <[email protected]>
  • Loading branch information
altimeter-130ft committed Jan 18, 2024
1 parent 76df948 commit cec87d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/internal/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define BUFSIZE (256)
#define BUFSIZE_SMALL (1)

#ifdef FLB_HAVE_STRERROR_R
#if defined(FLB_HAVE_STRERROR_R) || defined(FLB_HAVE_STRERROR_S)
static void test_pal_strerror_r_noerror()
{
int ret;
Expand Down Expand Up @@ -66,7 +66,7 @@ static void test_pal_strerror_r_error_unknown()
#endif

TEST_LIST = {
#ifdef FLB_HAVE_STRERROR_R
#if defined(FLB_HAVE_STRERROR_R) || defined(FLB_HAVE_STRERROR_S)
{ "pal_strerror_r_noerror" , test_pal_strerror_r_noerror},
{ "pal_strerror_r_error_einval" , test_pal_strerror_r_error_einval},
{ "pal_strerror_r_smallbuf" , test_pal_strerror_r_smallbuf},
Expand Down

0 comments on commit cec87d7

Please sign in to comment.