<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libgpg-error/tests, branch libgpg-error-1.60</title>
<subtitle>Error codes used by GnuPG et al.</subtitle>
<id>http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=libgpg-error-1.60</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=libgpg-error-1.60'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/'/>
<updated>2026-01-09T02:54:56Z</updated>
<entry>
<title>w32:tests: Fix a test failure for tilde expansion.</title>
<updated>2026-01-09T02:54:56Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2026-01-09T02:54:56Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=4a1381642740210875ac461e21ea5a53a5c67912'/>
<id>urn:sha1:4a1381642740210875ac461e21ea5a53a5c67912</id>
<content type='text'>
* tests/t-stringutils.c: [HAVE_W32_SYSTEM] (mygethome): Use
fnameconcat to get HOME, instead of the environment variable.

--

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>estream: Support the %b conversion specifier from C23</title>
<updated>2025-08-14T15:04:08Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-08-14T15:03:22Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=6ac5332e4f6988112f4272cfe7a2eee31173ff3f'/>
<id>urn:sha1:6ac5332e4f6988112f4272cfe7a2eee31173ff3f</id>
<content type='text'>
* src/estream-printf.c (CONSSPEC_BIN): New.
(compute_type): Handle it.
(parse_format): Support 'b'.
(do_format): Divert 'b' to pr_integer.
(pr_integer): Print binary format.

* tests/t-printf.c (check_fprintf_sf): Add two simple testcases.
--

Might be handy in some cases and is easy to implement.  Minor drawback
is that this increases a stack based buffer from 100 to 150 bytes.
</content>
</entry>
<entry>
<title>tests: Check that we do not use the es macros in the public API.</title>
<updated>2025-04-09T07:35:39Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-09T07:35:39Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=26b876030dbda890b9630595419b422aa182c0dd'/>
<id>urn:sha1:26b876030dbda890b9630595419b422aa182c0dd</id>
<content type='text'>
* tests/t-version.c: Undef the macros.
</content>
</entry>
<entry>
<title>argparse: Make getreg meta command work on Unix.</title>
<updated>2025-04-07T14:27:06Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-07T14:27:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=9864dd4d66342cca340f8ebe57f46b2fa274bac0'/>
<id>urn:sha1:9864dd4d66342cca340f8ebe57f46b2fa274bac0</id>
<content type='text'>
* src/argparse.c (_gpgrt_argparse_internal_s): Add fields no_registry
and registry.
(initialize): Init them.
(emulated_registry_lookup): New.
(handle_meta_getenv): Use it.
* tests/etc/t-argparse.conf: Add a getreg meta command.
* tests/t-argparse.c (opt): Add a disable-akr command.
* tests/etc/Registry: New.
</content>
</entry>
<entry>
<title>Add a section mode to the name-value functions.</title>
<updated>2025-04-07T12:31:38Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-07T12:31:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=d0b7d33536736ef6f3d41575b6f58b2d3a7c139b'/>
<id>urn:sha1:d0b7d33536736ef6f3d41575b6f58b2d3a7c139b</id>
<content type='text'>
* src/gpg-error.h.in (GPGRT_NVC_SECTION): New.
* src/name-value.c (_gpgrt_name_value_container): Add section_mode.
(_gpgrt_nvc_new): Set it.
(_gpgrt_nvc_get_flag): Return it.
(valid_name): Add arg sectionmode and change callers.
(do_nvc_parse): Parse section names in section mode.
(_gpgrt_nvc_write): Return an error in section mode.
</content>
</entry>
<entry>
<title>Allow name-value lookup w/o a trailing colon for the name.</title>
<updated>2025-04-07T09:20:53Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-07T09:20:53Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=afb277e5bdd92c16a4fdbd33b89dab4c03a5ae62'/>
<id>urn:sha1:afb277e5bdd92c16a4fdbd33b89dab4c03a5ae62</id>
<content type='text'>
* src/name-value.c (_gpgrt_name_value_entry): Add field namelen.
(ascii_memcasecmp): New.
(same_name_p): New.
(valid_name): Strip the colon and return the length.
(do_nvc_add): Set namelen.
(_gpgrt_nvc_lookup): Simplify.

* tests/t-name-value.c (test_getting_values): Add some extra tests.
--

The requirement for a colon after the name is too cumbersome.
</content>
</entry>
<entry>
<title>New public API gpgrt_nvc_* and gpgrt_nve_*</title>
<updated>2025-04-07T07:56:39Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-07T07:56:39Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=7ec1f27b60eec95297c5267ab5ebbdb73b263c3f'/>
<id>urn:sha1:7ec1f27b60eec95297c5267ab5ebbdb73b263c3f</id>
<content type='text'>
* src/name-value.c: New.
* tests/t-name-value.c: New.
* src/gpg-error.def.in: Add new functions.
* src/gpg-error.h.in: Ditto.
* src/gpg-error.vers: Ditto.
* src/visibility.c: Ditto.
* src/visibility.h: Ditto.
--

These new functions were originally added to GnuPG taken from current
GnuPG master.  The license has been changed from (LGPL-3.0-or-later OR
GPL-2.0-or-later) to LGPL-2.1-or-later: Everything was written by me
or employees/contractors of g10 Code GmbH.  The private key handling
has been removed because that would require Libgcrypt functions.  Some
functions are changed.
</content>
</entry>
<entry>
<title>Add test cases for the strlist functions.</title>
<updated>2025-04-04T10:22:52Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-04T10:22:52Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=b6b0af7d4eb2c65318ac87253dc3979f99b301dd'/>
<id>urn:sha1:b6b0af7d4eb2c65318ac87253dc3979f99b301dd</id>
<content type='text'>
* tests/t-strlist.c: new.
--

The test cases are taken from the GnuPG version of strlist.c
</content>
</entry>
<entry>
<title>tests: Add macros to improve the debug output.</title>
<updated>2025-04-04T10:21:48Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2025-04-04T10:21:48Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=be036dccd756e326470afcd7928a1d20790fc24a'/>
<id>urn:sha1:be036dccd756e326470afcd7928a1d20790fc24a</id>
<content type='text'>
* tests/t-common.h (current_func): New var.
(enter_test_function, leave_test_function): New macros.
(die, fail, show): Print the fucntion name.
</content>
</entry>
<entry>
<title>Avoid use of 'nullptr' for an identifier.</title>
<updated>2024-10-22T23:48:06Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2024-10-22T23:48:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=d14c69a7f256a9444c5c64b808d8767e5a8ba68e'/>
<id>urn:sha1:d14c69a7f256a9444c5c64b808d8767e5a8ba68e</id>
<content type='text'>
* tests/t-printf.c (check_fprintf_sf): Use 'null_ptr'
as an identifier.

--

GnuPG-bug-id: 7344
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
</feed>
