Skip to content

Commit 8d59ef8

Browse files
chore(libpath): gold helpers, modular CI, and Phase 8 docs
Bring libpath to the Synesis C/C++ gold bar on boilerplate: - Copy examples/scratch runners from cmake-helpers @dfa6add; keep prepare_cmake.sh SimulateWindowsOnUnix and --stlsoft-root-dir; - Set test.scratch.versions PROGRAM_NAME; drop dead PRIVATE STLSoft link from core; absorb MSVC_USE_MT; register unit tests via add_test; fix test.unit.parse.c Windows offsets / UNC compile; - Add install-sis-deps, ci.yml + ci-cell (STLSoft xTests), Windows .cmd dogfood, execute-bit restore, install-smoke; README CI badge; - Create CHANGES.md from HISTORY, upgrade NEWS to three-column Details, remove subsumed HISTORY.md; list example.cpp.parse.1 as allowed-to-fail;
1 parent b92167e commit 8d59ef8

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎cmake/TargetMacros.cmake‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ function(define_automated_test_program program_name entry_point_source_name)
5454
${X_MSVC_CUSTOM_WARNINGS_}
5555
>
5656
)
57+
58+
add_test(
59+
NAME ${program_name}
60+
COMMAND ${program_name}
61+
)
5762
endfunction(define_automated_test_program)
5863

5964

‎test/unit/test.unit.parse.c/test.unit.parse.c.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Purpose: Implementation file for the test.unit.parse.c project.
55
*
66
* Created: 9th November 2012
7-
* Updated: 15th March 2025
7+
* Updated: 13th October 2026
88
*
99
* ////////////////////////////////////////////////////////////////////// */
1010

@@ -1708,7 +1708,7 @@ static void test_Windows_bad_characters(void)
17081708

17091709
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17101710
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1711-
XTESTS_TEST_INTEGER_EQUAL(0u, &firstBadCharOffset);
1711+
XTESTS_TEST_INTEGER_EQUAL(0u, firstBadCharOffset);
17121712

17131713

17141714
rc = libpath_Parse_ParsePathFromCStyleString("C:\\dir\\file.ext", 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
@@ -1721,36 +1721,36 @@ static void test_Windows_bad_characters(void)
17211721

17221722
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17231723
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1724-
XTESTS_TEST_INTEGER_EQUAL(2u, &firstBadCharOffset);
1724+
XTESTS_TEST_INTEGER_EQUAL(2u, firstBadCharOffset);
17251725

17261726

17271727
rc = libpath_Parse_ParsePathFromCStyleString("C\\d:ir\\file.ext", 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
17281728

17291729
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17301730
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1731-
XTESTS_TEST_INTEGER_EQUAL(3u, &firstBadCharOffset);
1731+
XTESTS_TEST_INTEGER_EQUAL(3u, firstBadCharOffset);
17321732

17331733

17341734
rc = libpath_Parse_ParsePathFromCStyleString("C\\di:r\\file.ext", 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
17351735

17361736
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17371737
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1738-
XTESTS_TEST_INTEGER_EQUAL(4u, &firstBadCharOffset);
1738+
XTESTS_TEST_INTEGER_EQUAL(4u, firstBadCharOffset);
17391739

17401740

17411741
rc = libpath_Parse_ParsePathFromCStyleString("C\\dir:\\file.ext", 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
17421742

17431743
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17441744
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1745-
XTESTS_TEST_INTEGER_EQUAL(5u, &firstBadCharOffset);
1745+
XTESTS_TEST_INTEGER_EQUAL(5u, firstBadCharOffset);
17461746

17471747

17481748

17491749
rc = libpath_Parse_ParsePathFromCStyleString("\\:Cdir\\file.ext", 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
17501750

17511751
XTESTS_TEST_ENUM_EQUAL(libpath_ResultCode_BadPathCharacter, rc);
17521752
XTESTS_TEST_INTEGER_EQUAL(15u, r.input.len);
1753-
XTESTS_TEST_INTEGER_EQUAL(1u, &firstBadCharOffset);
1753+
XTESTS_TEST_INTEGER_EQUAL(1u, firstBadCharOffset);
17541754
#endif
17551755
}
17561756

@@ -2109,7 +2109,7 @@ static void test_Windows_UNC_share_with_charwise_steps(void)
21092109
{ libpath_size_t i; for (i = 0; i <= cch; ++i)
21102110
{
21112111
libpath_ParseResult_t r;
2112-
LIBPATH_RC const rc = libpath_Parse_ParsePathFromStringPtrAndLen(input, i, 0, &r, 0, LIBPATH_LF_nullptr, &firstBadCharOffset);
2112+
LIBPATH_RC const rc = libpath_Parse_ParsePathFromStringPtrAndLen(input, i, 0, &r, 0, LIBPATH_LF_nullptr, LIBPATH_LF_nullptr);
21132113

21142114
if (1 == i ||
21152115
cch == i)

0 commit comments

Comments
 (0)