Skip to content

Commit 3c5ad97

Browse files
committed
tests BUGFIX openconfig test fails without regex
1 parent 1c3e128 commit 3c5ad97

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ly_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414

1515
#define _GNU_SOURCE
16-
#define _POSIX_C_SOURCE 200809L /* pthread_rwlock_t */
1716

1817
#include "ly_common.h"
1918

tests/utests/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c)
4747
ly_add_utest(NAME inout SOURCES basic/test_inout.c)
4848
ly_add_utest(NAME context SOURCES basic/test_context.c)
4949
if(NOT WIN32)
50-
ly_add_utest(NAME plugins SOURCES basic/test_plugins.c)
50+
ly_add_utest(NAME plugins SOURCES basic/test_plugins.c)
5151
endif()
5252
ly_add_utest(NAME xml SOURCES basic/test_xml.c)
5353
ly_add_utest(NAME json SOURCES basic/test_json.c)
@@ -77,4 +77,6 @@ ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c)
7777
ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c)
7878
ly_add_utest(NAME schema_mount SOURCES extensions/test_schema_mount.c)
7979
ly_add_utest(NAME structure SOURCES extensions/test_structure.c)
80-
ly_add_utest(NAME openconfig SOURCES extensions/test_openconfig.c)
80+
if(HAVE_REGEX_H)
81+
ly_add_utest(NAME openconfig SOURCES extensions/test_openconfig.c)
82+
endif()

0 commit comments

Comments
 (0)