<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/share/examples/tests, branch releng/13.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-12-24T14:01:19Z</updated>
<entry>
<title>Silence snprintf truncation warnings in printf_test examples</title>
<updated>2023-12-24T14:01:19Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2023-12-21T22:39:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0907c0ddbaf22cc6d5d0e6692885f911e3b4e85f'/>
<id>urn:sha1:0907c0ddbaf22cc6d5d0e6692885f911e3b4e85f</id>
<content type='text'>
Building share/examples/tests with clang 18 results in a few warnings
like:

  share/examples/tests/tests/plain/printf_test.c:67:6: error: 'snprintf' will always be truncated; specified size is 10, but format string expands to at least 17 [-Werror,-Wformat-truncation]
     67 |         if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16)
        |             ^

Since these tests are meant as an example of testing snprintf overflow,
suppress the warnings.

MFC after:	3 days

(cherry picked from commit 69c8025a498450b6bc4cc9e97ba779ed1c2e7f4b)
</content>
</entry>
<entry>
<title>share/examples/tests: fix comments after $FreeBSD$ removal</title>
<updated>2023-08-23T17:43:35Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-08-16T21:37:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50510a7a63b80a5935416bc497802b69639d556d'/>
<id>urn:sha1:50510a7a63b80a5935416bc497802b69639d556d</id>
<content type='text'>
Fixes: 2a63c3be1582 ("Remove $FreeBSD$: one-line .c comment pattern")
(cherry picked from commit d1d7a273707a50d4ad1691b2c4dbf645dfa253ea)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line lua tag</title>
<updated>2023-08-23T17:43:34Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=238e32b6066383c928f5f1450291902ec3c429ae'/>
<id>urn:sha1:238e32b6066383c928f5f1450291902ec3c429ae</id>
<content type='text'>
Remove /^--\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit 6ef644f5889a)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line bare tag</title>
<updated>2023-08-23T17:43:33Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=350f9ac5b362558a39f447dea99d102b831ee0c8'/>
<id>urn:sha1:350f9ac5b362558a39f447dea99d102b831ee0c8</id>
<content type='text'>
Remove /^\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit 05248206f720)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c comment pattern</title>
<updated>2023-08-23T17:43:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8ad303d68cec3ee1133550de37e0009502621e50'/>
<id>urn:sha1:8ad303d68cec3ee1133550de37e0009502621e50</id>
<content type='text'>
Remove /^/[*/]\s*\$FreeBSD\$.*\n/

Similar commit in main:
(cherry picked from commit 2a63c3be1582)
</content>
</entry>
<entry>
<title>Update the spelling of my name</title>
<updated>2019-04-22T17:52:46Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2019-04-22T17:52:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da5069e1f7daaef1e7157876d6044de6f3a08ce2'/>
<id>urn:sha1:da5069e1f7daaef1e7157876d6044de6f3a08ce2</id>
<content type='text'>
Previous spellings of my name (NGie, Ngie) weren't my legal spelling. Use Enji
instead for clarity.

While here, remove "All Rights Reserved" from copyrights I "own".

MFC after:	1 week
</content>
</entry>
<entry>
<title>Initial googlemock/googletest integration into the build/FreeBSD test suite</title>
<updated>2019-03-15T21:43:52Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2019-03-15T21:43:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5193fcde8d29e5fe3056c8cf7b0d7a004c20a632'/>
<id>urn:sha1:5193fcde8d29e5fe3056c8cf7b0d7a004c20a632</id>
<content type='text'>
This initial integration takes googlemock/googletest release 1.8.1, integrates
the library, tests, and sample unit tests into the build.

googlemock/googletest's inclusion is optionally available via `MK_GOOGLETEST`.
`MK_GOOGLETEST` is dependent on `MK_TESTS` and is enabled by default when
built with a C++11 capable toolchain.

Google tests can be specified via the `GTESTS` variable, which, in comparison
with the other test drivers, is more simplified/streamlined, as Googletest only
supports C++ tests; not raw C or shell tests (C tests can be written in C++
using the standard embedding methods).

No dependent libraries are assumed for the tests. One must specify `gmock`,
`gmock_main`, `gtest`, or `gtest_main`, via `LIBADD` for the program.

More information about googlemock and googletest can be found on the
Googletest [project page](https://github.com/google/googletest), and the
[GoogleMock](https://github.com/google/googletest/blob/v1.8.x/googlemock/docs/Documentation.md)
and
[GoogleTest](https://github.com/google/googletest/tree/v1.8.x/googletest/docs)
docs.

These tests are originally integrated into the build as plain driver tests, but
will be natively integrated into Kyua in a later version.

Known issues/Errata:
* [WhenDynamicCastToTest.AmbiguousCast fails on FreeBSD](https://github.com/google/googletest/issues/2172)

Reviewed by:	asomers
Approved by:	emaste (mentor)
MFC after:	2 months
Differential Revision: https://reviews.freebsd.org/D19551
</content>
</entry>
<entry>
<title>Compile and install most of the googletest examples</title>
<updated>2019-03-11T19:50:44Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2019-03-11T19:50:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bfc4020c44871d523d2708c2da752439c7265da'/>
<id>urn:sha1:9bfc4020c44871d523d2708c2da752439c7265da</id>
<content type='text'>
sample9_unittest is not compiled/installed, because it intentionally fails
and would result in red test runs until broken to always pass.
</content>
</entry>
<entry>
<title>General further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-20T19:49:47Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-20T19:49:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a16b7a18f5d0b031f09832fd7752fba717e2a97'/>
<id>urn:sha1:8a16b7a18f5d0b031f09832fd7752fba717e2a97</id>
<content type='text'>
Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
</content>
</entry>
</feed>
