Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libcpath for openSUSE:Factory checked in at 2026-06-22 17:36:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcpath (Old) and /work/SRC/openSUSE:Factory/.libcpath.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcpath" Mon Jun 22 17:36:19 2026 rev:23 rq:1360884 version:20260621 Changes: -------- --- /work/SRC/openSUSE:Factory/libcpath/libcpath.changes 2026-06-12 19:31:02.842991118 +0200 +++ /work/SRC/openSUSE:Factory/.libcpath.new.1956/libcpath.changes 2026-06-22 17:36:51.029332831 +0200 @@ -1,0 +2,6 @@ +Sun Jun 21 18:38:15 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 20260621 + * Testsuite updates + +------------------------------------------------------------------- Old: ---- libcpath-alpha-20260612.tar.gz libcpath-alpha-20260612.tar.gz.asc New: ---- libcpath-alpha-20260621.tar.gz libcpath-alpha-20260621.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcpath.spec ++++++ --- /var/tmp/diff_new_pack.zcyPao/_old 2026-06-22 17:36:51.949364951 +0200 +++ /var/tmp/diff_new_pack.zcyPao/_new 2026-06-22 17:36:51.953365090 +0200 @@ -18,7 +18,7 @@ Name: libcpath %define lname libcpath1 -Version: 20260612 +Version: 20260621 Release: 0 Summary: Library for C path functions License: LGPL-3.0-or-later @@ -31,7 +31,7 @@ BuildRequires: pkg-config BuildRequires: pkgconfig(libcerror) >= 20260612 BuildRequires: pkgconfig(libclocale) >= 20260612 -BuildRequires: pkgconfig(libcsplit) >= 20260520 +BuildRequires: pkgconfig(libcsplit) >= 20260612 BuildRequires: pkgconfig(libuna) >= 20260602 # Various notes: https://en.opensuse.org/libyal ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.zcyPao/_old 2026-06-22 17:36:51.989366347 +0200 +++ /var/tmp/diff_new_pack.zcyPao/_new 2026-06-22 17:36:51.993366487 +0200 @@ -1,5 +1,5 @@ -mtime: 1781272454 -commit: cda3277895b4c51e7c6510ea7a3d0c30ba6a7091c23484f7750e4bde3901dec7 +mtime: 1782067105 +commit: 98499f6ae82e132868b6c712495cc6d40e17f6cdcf03199de89367b945b2f226 url: https://src.opensuse.org/security-forensics/libcpath revision: master ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-06-21 20:38:25.000000000 +0200 @@ -0,0 +1 @@ +.osc ++++++ libcpath-alpha-20260612.tar.gz -> libcpath-alpha-20260621.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/common/config.h new/libcpath-20260621/common/config.h --- old/libcpath-20260612/common/config.h 2026-06-12 12:33:29.000000000 +0200 +++ new/libcpath-20260621/common/config.h 2026-06-21 17:36:31.000000000 +0200 @@ -365,7 +365,7 @@ #define PACKAGE_NAME "libcpath" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libcpath 20260612" +#define PACKAGE_STRING "libcpath 20260621" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libcpath" @@ -374,7 +374,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "20260612" +#define PACKAGE_VERSION "20260621" /* The size of 'int', as computed by sizeof. */ #define SIZEOF_INT 4 @@ -400,7 +400,7 @@ /* #undef STRERROR_R_CHAR_P */ /* Version number of package */ -#define VERSION "20260612" +#define VERSION "20260621" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/configure new/libcpath-20260621/configure --- old/libcpath-20260612/configure 2026-06-12 14:44:32.000000000 +0200 +++ new/libcpath-20260621/configure 2026-06-21 17:36:26.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libcpath 20260612. +# Generated by GNU Autoconf 2.72 for libcpath 20260621. # # Report bugs to <https://github.com/libyal/libcpath/issues>. # @@ -614,8 +614,8 @@ # Identity of this package. PACKAGE_NAME='libcpath' PACKAGE_TARNAME='libcpath' -PACKAGE_VERSION='20260612' -PACKAGE_STRING='libcpath 20260612' +PACKAGE_VERSION='20260621' +PACKAGE_STRING='libcpath 20260621' PACKAGE_BUGREPORT='https://github.com/libyal/libcpath/issues' PACKAGE_URL='' @@ -1473,7 +1473,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -'configure' configures libcpath 20260612 to adapt to many kinds of systems. +'configure' configures libcpath 20260621 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1544,7 +1544,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libcpath 20260612:";; + short | recursive ) echo "Configuration of libcpath 20260621:";; esac cat <<\_ACEOF @@ -1706,7 +1706,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libcpath configure 20260612 +libcpath configure 20260621 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -2321,7 +2321,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libcpath $as_me 20260612, which was +It was created by libcpath $as_me 20260621, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -3802,7 +3802,7 @@ # Define the identity of the package. PACKAGE='libcpath' - VERSION='20260612' + VERSION='20260621' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -33596,7 +33596,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libcpath $as_me 20260612, which was +This file was extended by libcpath $as_me 20260621, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -33664,7 +33664,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libcpath config.status 20260612 +libcpath config.status 20260621 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/configure.ac new/libcpath-20260621/configure.ac --- old/libcpath-20260612/configure.ac 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/configure.ac 2026-06-21 17:18:59.000000000 +0200 @@ -2,7 +2,7 @@ AC_INIT( [libcpath], - [20260612], + [20260621], [https://github.com/libyal/libcpath/issues]) AC_CONFIG_SRCDIR( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/dpkg/changelog new/libcpath-20260621/dpkg/changelog --- old/libcpath-20260612/dpkg/changelog 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/dpkg/changelog 2026-06-21 17:36:31.000000000 +0200 @@ -1,5 +1,5 @@ -libcpath (20260612-1) unstable; urgency=low +libcpath (20260621-1) unstable; urgency=low * Auto-generated - -- Joachim Metz <[email protected]> Fri, 12 Jun 2026 14:44:37 +0200 + -- Joachim Metz <[email protected]> Sun, 21 Jun 2026 17:36:30 +0200 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/dpkg/compat new/libcpath-20260621/dpkg/compat --- old/libcpath-20260612/dpkg/compat 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/dpkg/compat 2026-06-21 17:18:59.000000000 +0200 @@ -1 +1 @@ -10 +13 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/dpkg/control new/libcpath-20260621/dpkg/control --- old/libcpath-20260612/dpkg/control 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/dpkg/control 2026-06-21 17:18:59.000000000 +0200 @@ -1,7 +1,7 @@ Source: libcpath Priority: extra Maintainer: Joachim Metz <[email protected]> -Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config +Build-Depends: debhelper (>= 13), dh-autoreconf, pkg-config Standards-Version: 4.1.4 Section: libs Homepage: https://github.com/libyal/libcpath diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/dpkg/rules new/libcpath-20260621/dpkg/rules --- old/libcpath-20260612/dpkg/rules 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/dpkg/rules 2026-06-21 17:18:59.000000000 +0200 @@ -13,7 +13,11 @@ .PHONY: override_dh_install override_dh_install: - dh_install --fail-missing -X.la + dh_install -X.la + +.PHONY: override_dh_missing +override_dh_missing: + dh_missing -X.la --fail-missing .PHONY: override_dh_strip override_dh_strip: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/include/libcpath/definitions.h new/libcpath-20260621/include/libcpath/definitions.h --- old/libcpath-20260612/include/libcpath/definitions.h 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/include/libcpath/definitions.h 2026-06-21 17:36:31.000000000 +0200 @@ -24,11 +24,11 @@ #include <libcpath/types.h> -#define LIBCPATH_VERSION 20260612 +#define LIBCPATH_VERSION 20260621 /* The libcpath version string */ -#define LIBCPATH_VERSION_STRING "20260612" +#define LIBCPATH_VERSION_STRING "20260621" #if defined( WINAPI ) || defined( __MINGW32__ ) #define LIBCPATH_SEPARATOR '\\' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/include/libcpath/error.h new/libcpath-20260621/include/libcpath/error.h --- old/libcpath-20260612/include/libcpath/error.h 2026-06-12 12:14:11.000000000 +0200 +++ new/libcpath-20260621/include/libcpath/error.h 2026-06-21 17:19:00.000000000 +0200 @@ -82,7 +82,7 @@ */ LIBCPATH_ARGUMENT_ERROR_UNSUPPORTED_VALUE = 8, - /* The argument contains a value that conficts with another argument + /* The argument contains a value that conflicts with another argument */ LIBCPATH_ARGUMENT_ERROR_CONFLICTING_VALUE = 9 }; @@ -214,7 +214,7 @@ { LIBCPATH_OUTPUT_ERROR_GENERIC = 0, - /* There is insuficient space to write the output + /* There is insufficient space to write the output */ LIBCPATH_OUTPUT_ERROR_INSUFFICIENT_SPACE = 1 }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/include/libcpath.h new/libcpath-20260621/include/libcpath.h --- old/libcpath-20260612/include/libcpath.h 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/include/libcpath.h 2026-06-21 17:36:31.000000000 +0200 @@ -129,7 +129,7 @@ libcpath_error_t **error ); /* Determines the full path of the path specified - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path( @@ -202,7 +202,7 @@ libcpath_error_t **error ); /* Determines the full path of the path specified - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path_wide( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/include/libcpath.h.in new/libcpath-20260621/include/libcpath.h.in --- old/libcpath-20260612/include/libcpath.h.in 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/include/libcpath.h.in 2026-06-21 17:19:00.000000000 +0200 @@ -129,7 +129,7 @@ libcpath_error_t **error ); /* Determines the full path of the path specified - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path( @@ -202,7 +202,7 @@ libcpath_error_t **error ); /* Determines the full path of the path specified - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path_wide( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcpath/libcpath.rc new/libcpath-20260621/libcpath/libcpath.rc --- old/libcpath-20260612/libcpath/libcpath.rc 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/libcpath/libcpath.rc 2026-06-21 17:36:31.000000000 +0200 @@ -22,12 +22,12 @@ BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to support cross-platform C path functions\0" - VALUE "FileVersion", "20260612" "\0" + VALUE "FileVersion", "20260621" "\0" VALUE "InternalName", "libcpath.dll\0" VALUE "LegalCopyright", "(C) 2008-2026, Joachim Metz <[email protected]>\0" VALUE "OriginalFilename", "libcpath.dll\0" VALUE "ProductName", "libcpath\0" - VALUE "ProductVersion", "20260612" "\0" + VALUE "ProductVersion", "20260621" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libcpath/\0" END END diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcpath/libcpath_definitions.h new/libcpath-20260621/libcpath/libcpath_definitions.h --- old/libcpath-20260612/libcpath/libcpath_definitions.h 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/libcpath/libcpath_definitions.h 2026-06-21 17:36:31.000000000 +0200 @@ -35,11 +35,11 @@ */ #else -#define LIBCPATH_VERSION 20260612 +#define LIBCPATH_VERSION 20260621 /* The libcpath version string */ -#define LIBCPATH_VERSION_STRING "20260612" +#define LIBCPATH_VERSION_STRING "20260621" #if defined( WINAPI ) || defined( __MINGW32__ ) #define LIBCPATH_SEPARATOR '\\' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcpath/libcpath_path.c new/libcpath-20260621/libcpath/libcpath_path.c --- old/libcpath-20260612/libcpath/libcpath_path.c 2026-06-12 12:29:47.000000000 +0200 +++ new/libcpath-20260621/libcpath/libcpath_path.c 2026-06-21 17:19:00.000000000 +0200 @@ -595,7 +595,7 @@ #if defined( WINAPI ) /* Determines the path type - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_path_type( const char *path, @@ -699,7 +699,7 @@ } /* Determines the volume name - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_volume_name( const char *path, @@ -1114,7 +1114,7 @@ * Volume device path: \\.\C: * Volume file system path: \\.\C:\ * - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_full_path( const char *path, @@ -2014,7 +2014,7 @@ * /../home/user/file.txt * user/../user/file.txt * - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_full_path( const char *path, @@ -2508,7 +2508,12 @@ last_used_path_segment_index = path_segment_index; } } +#if defined( __MINGW32__ ) + if( ( safe_full_path_size > 0 ) + && ( path_number_of_segments > 1 ) ) +#else if( safe_full_path_size > 0 ) +#endif { /* Remove the size reserved of the last directory separator */ @@ -4327,7 +4332,7 @@ #if defined( WINAPI ) /* Determines the path type - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_path_type_wide( const wchar_t *path, @@ -4431,7 +4436,7 @@ } /* Determines the volume name - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_volume_name_wide( const wchar_t *path, @@ -4841,7 +4846,7 @@ * Volume 'relative' path: C:directory\file.txt * UNC path: \\server\share\directory\file.txt * - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_full_path_wide( const wchar_t *path, @@ -5741,7 +5746,7 @@ * /../home/user/file.txt * user/../user/file.txt * - * Returns 1 if succesful or -1 on error + * Returns 1 if successful or -1 on error */ int libcpath_path_get_full_path_wide( const wchar_t *path, @@ -6235,7 +6240,12 @@ last_used_path_segment_index = path_segment_index; } } +#if defined( __MINGW32__ ) + if( ( safe_full_path_size > 0 ) + && ( path_number_of_segments > 1 ) ) +#else if( safe_full_path_size > 0 ) +#endif { /* Remove the size reserved of the last directory separator */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcpath.spec new/libcpath-20260621/libcpath.spec --- old/libcpath-20260612/libcpath.spec 2026-06-12 14:44:37.000000000 +0200 +++ new/libcpath-20260621/libcpath.spec 2026-06-21 17:36:31.000000000 +0200 @@ -1,5 +1,5 @@ Name: libcpath -Version: 20260612 +Version: 20260621 Release: 1 Summary: Library to support cross-platform C path functions Group: System Environment/Libraries @@ -65,6 +65,6 @@ %{_mandir}/man3/* %changelog -* Fri Jun 12 2026 Joachim Metz <[email protected]> 20260612-1 +* Sun Jun 21 2026 Joachim Metz <[email protected]> 20260621-1 - Auto-generated diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcsplit/libcsplit_definitions.h new/libcpath-20260621/libcsplit/libcsplit_definitions.h --- old/libcpath-20260612/libcsplit/libcsplit_definitions.h 2026-06-12 14:44:27.000000000 +0200 +++ new/libcpath-20260621/libcsplit/libcsplit_definitions.h 2026-06-21 17:36:20.000000000 +0200 @@ -35,11 +35,11 @@ */ #else -#define LIBCSPLIT_VERSION 20260520 +#define LIBCSPLIT_VERSION 20260612 /* The libcsplit version string */ -#define LIBCSPLIT_VERSION_STRING "20260520" +#define LIBCSPLIT_VERSION_STRING "20260612" #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/libcsplit/libcsplit_extern.h new/libcpath-20260621/libcsplit/libcsplit_extern.h --- old/libcpath-20260612/libcsplit/libcsplit_extern.h 2026-06-12 14:44:27.000000000 +0200 +++ new/libcpath-20260621/libcsplit/libcsplit_extern.h 2026-06-21 17:36:20.000000000 +0200 @@ -24,6 +24,19 @@ #include <common.h> +#if !defined( __CYGWIN__ ) && !defined( _WIN32 ) && defined( __has_attribute ) +#if __has_attribute( visibility ) +#define LIBCSPLIT_INTERNAL __attribute__((visibility("hidden"))) extern + +#else +#define LIBCSPLIT_INTERNAL extern + +#endif /* __has_attribute( visibility ) */ +#else +#define LIBCSPLIT_INTERNAL extern + +#endif /* !defined( __CYGWIN__ ) && !defined( _WIN32 ) && defined( __has_attribute ) */ + /* Define HAVE_LOCAL_LIBCSPLIT for local use of libcsplit */ #if !defined( HAVE_LOCAL_LIBCSPLIT ) @@ -32,7 +45,7 @@ #else #define LIBCSPLIT_EXTERN /* extern */ -#define LIBCSPLIT_EXTERN_VARIABLE extern +#define LIBCSPLIT_EXTERN_VARIABLE LIBCSPLIT_INTERNAL #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/tests/Makefile.am new/libcpath-20260621/tests/Makefile.am --- old/libcpath-20260612/tests/Makefile.am 2026-06-12 12:17:18.000000000 +0200 +++ new/libcpath-20260621/tests/Makefile.am 2026-06-21 17:20:32.000000000 +0200 @@ -100,9 +100,14 @@ echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' ; \ } > $@ -test_library: package.m4 test_library.at test_macros.at +test_library: \ + package.m4 \ + test_library.at \ + test_macros.at -test_manpages: package.m4 test_manpages.at +test_manpages: \ + package.m4 \ + test_manpages.at EXTRA_DIST = \ $(check_AUTOTESTS:=.at) \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/tests/Makefile.in new/libcpath-20260621/tests/Makefile.in --- old/libcpath-20260612/tests/Makefile.in 2026-06-12 14:44:33.000000000 +0200 +++ new/libcpath-20260621/tests/Makefile.in 2026-06-21 17:36:27.000000000 +0200 @@ -858,9 +858,14 @@ echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' ; \ } > $@ -test_library: package.m4 test_library.at test_macros.at +test_library: \ + package.m4 \ + test_library.at \ + test_macros.at -test_manpages: package.m4 test_manpages.at +test_manpages: \ + package.m4 \ + test_manpages.at # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/tests/atlocal.in new/libcpath-20260621/tests/atlocal.in --- old/libcpath-20260612/tests/atlocal.in 2026-06-12 12:14:10.000000000 +0200 +++ new/libcpath-20260621/tests/atlocal.in 2026-06-21 17:18:59.000000000 +0200 @@ -1,11 +1,10 @@ # Settings used in test_macros.at CYGPATH="@CYGPATH@" -OBJDUMP="@OBJDUMP@" USE_MINGW="@TESTS_USE_MINGW@" USE_WINAPI="@TESTS_USE_WINAPI@" WINEPATH="@WINEPATH@" -export CYGPATH OBJDUMP USE_MINGW USE_WINAPI WINEPATH +export CYGPATH USE_MINGW USE_WINAPI WINEPATH # Settings used in test_manpages.at MAN="@MAN@" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/tests/cpath_test_memory.c new/libcpath-20260621/tests/cpath_test_memory.c --- old/libcpath-20260612/tests/cpath_test_memory.c 2026-06-12 12:14:11.000000000 +0200 +++ new/libcpath-20260621/tests/cpath_test_memory.c 2026-06-21 17:19:00.000000000 +0200 @@ -39,7 +39,7 @@ int cpath_test_malloc_attempts_before_fail = -1; /* Custom malloc for testing memory error cases - * Note this function might fail if compiled with optimation + * Note this function might fail if compiled with optimization * Returns a pointer to newly allocated data or NULL */ void *malloc( @@ -78,7 +78,7 @@ int cpath_test_memcpy_attempts_before_fail = -1; /* Custom memcpy for testing memory error cases - * Note this function might fail if compiled with optimation and as a shared libary + * Note this function might fail if compiled with optimization and as a shared library * Returns a pointer to newly allocated data or NULL */ void *memcpy( @@ -119,7 +119,7 @@ int cpath_test_memset_attempts_before_fail = -1; /* Custom memset for testing memory error cases - * Note this function might fail if compiled with optimation and as a shared libary + * Note this function might fail if compiled with optimization and as a shared library * Returns a pointer to newly allocated data or NULL */ void *memset( @@ -160,7 +160,7 @@ int cpath_test_realloc_attempts_before_fail = -1; /* Custom realloc for testing memory error cases - * Note this function might fail if compiled with optimation + * Note this function might fail if compiled with optimization * Returns a pointer to reallocated data or NULL */ void *realloc( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcpath-20260612/tests/test_macros.at new/libcpath-20260621/tests/test_macros.at --- old/libcpath-20260612/tests/test_macros.at 2026-06-12 12:14:11.000000000 +0200 +++ new/libcpath-20260621/tests/test_macros.at 2026-06-21 17:19:00.000000000 +0200 @@ -9,6 +9,39 @@ [include_test_inputs], [m4_include([test_inputs_$1.at])]) +dnl Retrieves a values from a test input +dnl Arguments: +dnl test_input +dnl value_index +m4_define([get_test_input_value], [ + m4_argn([$2], m4_unquote(m4_translit(m4_defn([$1]), [[[]]]))) +]) + +dnl Strips leading whitespace +dnl Arguments +dnl string +m4_define([_strip_leading], + [m4_bpatsubst([$1], [^\s*])]) + +dnl Strips trailing whitespace +dnl Arguments +dnl string +m4_define([_strip_trailing], + [m4_bpatsubst([$1], [\s*$])]) + +dnl Strips a trailing newline +dnl Arguments +dnl string +m4_define([_strip_newline], + [m4_translit([$1], [ +])]) + +dnl Strips a leading and trailing whitespace and trailing newline +dnl Arguments +dnl string +m4_define([_strip], + [_strip_newline([_strip_trailing([_strip_leading([$1])])])]) + dnl Sets up helper functions. m4_define([SETUP_HELPER_FUNCTIONS], [AT_TEST_HELPER_FN( @@ -28,7 +61,7 @@ fi shift - $BINARY $[]* + $BINARY "$[]@" ]) AT_TEST_HELPER_FN( @@ -104,13 +137,8 @@ [test -n "${]$1[}"]) AT_CHECK([ath_fn_run_test_binary test_binary]) - AT_CLEANUP] - )] -) - -m4_define([get_test_result_value], [ - m4_argn([$2], m4_unquote(m4_translit(m4_defn([$1]), [[[]]]))) -]) + AT_CLEANUP]) + ]) dnl Runs one or more test binaries with input. dnl Arguments: @@ -126,8 +154,8 @@ [m4_foreach_w( [test_input], [$3], - [m4_define([test_options], m4_normalize(get_test_result_value([test_input], 2))) - m4_define([test_file], m4_normalize(get_test_result_value([test_input], 3))) + [m4_define([test_options], m4_normalize(get_test_input_value([test_input], 2))) + m4_define([test_file], [_strip(get_test_input_value([test_input], 3))]) m4_define( [test_binary], @@ -138,28 +166,23 @@ m4_ifblank( test_options, - [AT_SETUP(test_binary with input: 'sanitized_test_file') - - AT_SKIP_IF( - [test -n "${]$1[}"]) - - TEST_FILE=`ath_fn_resolve_test_file "$abs_srcdir/input/test_file"` + [m4_define( + [test_description], + [test_binary with input: 'sanitized_test_file'])], + [m4_define( + [test_description], + [test_binary with options: ']test_options[' and input: 'sanitized_test_file'])]) - AT_CHECK( - [ath_fn_run_test_binary test_binary "${TEST_FILE}"]) + AT_SETUP(test_description) - AT_CLEANUP], - [AT_SETUP(test_binary with options: 'test_options' and input: 'sanitized_test_file') + AT_SKIP_IF( + [test -n "${]$1[}"]) - AT_SKIP_IF( - [test -n "${]$1[}"]) + TEST_FILE=`ath_fn_resolve_test_file "$abs_srcdir/input/test_file"` - TEST_FILE=`ath_fn_resolve_test_file "$abs_srcdir/input/test_file"` + AT_CHECK( + [ath_fn_run_test_binary test_binary test_options "${TEST_FILE}"]) - AT_CHECK( - [ath_fn_run_test_binary test_binary test_options "${TEST_FILE}"]) - - AT_CLEANUP])] - )] - )] -) + AT_CLEANUP]) + ]) + ])
