Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ dnl
dnl Various functions
dnl

AC_SEARCH_LIBS(setsockopt, socket)
AC_SEARCH_LIBS(setsockopt, [socket ws2_32])
AC_SEARCH_LIBS(gethostent, nsl)

AC_CHECK_FUNCS(socket)
Expand Down
2 changes: 1 addition & 1 deletion examples/findfiles.cf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ bundle agent run
###############################################################################
#+begin_src example_output
#@ ```
#@ R: All files that match '/[tT][mM][pP]' = /tmp
#@ R: All files that match '/[tT][mM][pP]' = /tmp/
#@ ```
#+end_src
2 changes: 1 addition & 1 deletion libntech
8 changes: 6 additions & 2 deletions m4/snprintf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ AC_DEFUN([HW_FUNC_VSNPRINTF],
return 1;]])],
[hw_cv_func_vsnprintf_c99=yes],
[hw_cv_func_vsnprintf_c99=no],
[hw_cv_func_vsnprintf_c99=no])])],
[AS_CASE([$host_os],
[mingw*], [hw_cv_func_vsnprintf_c99=yes],
[hw_cv_func_vsnprintf_c99=no])])])],
[hw_cv_func_snprintf_c99=no])
AS_IF(
[test "$hw_cv_func_vsnprintf_c99" = yes],
Expand Down Expand Up @@ -178,7 +180,9 @@ AC_DEFUN([HW_FUNC_SNPRINTF],
return 1;]])],
[hw_cv_func_snprintf_c99=yes],
[hw_cv_func_snprintf_c99=no],
[hw_cv_func_snprintf_c99=no])])],
[AS_CASE([$host_os],
[mingw*], [hw_cv_func_snprintf_c99=yes],
[hw_cv_func_snprintf_c99=no])])])],
[hw_cv_func_snprintf_c99=no])
AS_IF(
[test "$hw_cv_func_snprintf_c99" = yes],
Expand Down
8 changes: 4 additions & 4 deletions tests/acceptance/01_vars/02_functions/findfiles.cf
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ bundle agent check
{
vars:
!windows::
"expected[a]" string => "$(G.testdir)/a,$(G.testdir)/d,$(G.testdir)/g";
"expected[b]" string => "$(G.testdir)/a,$(G.testdir)/bc,$(G.testdir)/d,$(G.testdir)/g,$(G.testdir)/klm,$(G.testdir)/tu";
"expected[a]" string => "$(G.testdir)/a,$(G.testdir)/d/,$(G.testdir)/g/";
"expected[b]" string => "$(G.testdir)/a,$(G.testdir)/bc,$(G.testdir)/d/,$(G.testdir)/g/,$(G.testdir)/klm/,$(G.testdir)/tu/";

"expected[c]" string => "$(G.testdir)/d/e,$(G.testdir)/g/h";
"expected[c]" string => "$(G.testdir)/d/e/,$(G.testdir)/g/h/";
"expected[d]" string => "$(G.testdir)/a,$(G.testdir)/bc";
"expected[e]" string => "";

"expected[f]" string => "$(G.testdir)/tu/*";
"expected[g]" string => "$(G.testdir)/a,$(G.testdir)/bc,$(G.testdir)/d,$(G.testdir)/g,$(G.testdir)/klm,$(G.testdir)/tu,$(G.testdir)/d/e,$(G.testdir)/g/h,$(G.testdir)/klm/nop,$(G.testdir)/tu/*,$(G.testdir)/d/e/f,$(G.testdir)/g/h/i,$(G.testdir)/klm/nop/qrs,$(G.testdir)/g/h/i/j";
"expected[g]" string => "$(G.testdir)/a,$(G.testdir)/bc,$(G.testdir)/d/,$(G.testdir)/g/,$(G.testdir)/klm/,$(G.testdir)/tu/,$(G.testdir)/d/e/,$(G.testdir)/g/h/,$(G.testdir)/klm/nop/,$(G.testdir)/tu/*,$(G.testdir)/d/e/f,$(G.testdir)/g/h/i/,$(G.testdir)/klm/nop/qrs,$(G.testdir)/g/h/i/j";
"expected[h]" string => "$(G.testdir)/g/h/i/j";
windows::
"expected[a]" string => "$(G.testdir)\\a,$(G.testdir)\\d,$(G.testdir)\\g";
Expand Down
12 changes: 6 additions & 6 deletions tests/acceptance/01_vars/02_functions/findfiles_up.cf
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ bundle agent check
);
"c3"
expression => and(
strcmp("$(G.testdir)\\core\\libntech\\.git", "$(test.t3[0])"),
strcmp("$(G.testdir)\\core\\.git", "$(test.t3[1])")
strcmp("$(G.testdir)\\core\\libntech\\.git\\", "$(test.t3[0])"),
strcmp("$(G.testdir)\\core\\.git\\", "$(test.t3[1])")
);
"c4"
expression => and(
strcmp("$(G.testdir)\\core\\libntech\\.git", "$(test.t4[0])"),
strcmp("$(G.testdir)\\core\\libntech\\.git\\", "$(test.t4[0])"),
not(isvariable("test.t4[1]"))
);
"c5"
Expand All @@ -106,12 +106,12 @@ bundle agent check
);
"c3"
expression => and(
strcmp("$(G.testdir)/core/libntech/.git", "$(test.t3[0])"),
strcmp("$(G.testdir)/core/.git", "$(test.t3[1])")
strcmp("$(G.testdir)/core/libntech/.git/", "$(test.t3[0])"),
strcmp("$(G.testdir)/core/.git/", "$(test.t3[1])")
);
"c4"
expression => and(
strcmp("$(G.testdir)/core/libntech/.git", "$(test.t4[0])"),
strcmp("$(G.testdir)/core/libntech/.git/", "$(test.t4[0])"),
not(isvariable("test.t4[1]"))
);
"c5"
Expand Down
Loading