dnf5/test
Aleš Matěj 6ae73f6c5d tests: verify `SetConstIterator` works in Python bindings
The problem is that the assignment statement in Python never copies
objects, this means that when we get a reference (returned by
`SetConstIterator::operator*()` to internal query object it is valid
only as long as the query lives.

This means that without additional changes this is a problem for
`RepoQuery`, `GroupQuery` and `EnvironmentQuery`. For me it doesn't
crash with `RepoQuery` (probably due to different memory layout) but it
is caught when run with Sanitizers or valgrind.

To verify with valgrind:
from `dnf5/test/python3/libdnf5` do
`$ PROJECT_BINARY_DIR=../../../build \
PROJECT_SOURCE_DIR=../../../ valgrind python3.13 -m unittest \
repo.test_repo_query.TestRepoQuery.test_repo_query`

This behavior is unexpected in Python, it should manage livetimes
automatically.
2025-07-24 06:53:45 +00:00
..
data tests: fix compat with dash and other shellcheck warnings 2025-07-22 07:57:22 +00:00
dnf5-plugins automatic: email emitter: Do not use fractional seconds in e-mail Date headers 2025-06-09 07:59:51 +00:00
dnf5daemon-server daemon tests: Adjust tests to current behavior 2024-11-12 12:21:44 +00:00
go Rename LIBDNF/LIBDNF5 in Cmake files 2022-08-19 13:23:30 +02:00
libdnf5 Add unit tests for nevra parsing 2025-07-21 04:02:22 +00:00
libdnf5-cli Test MultiProgressBar with already finished downloads 2025-01-21 10:20:28 +00:00
perl5 SWIG: unit tests for exceptions 2025-04-04 05:37:55 +00:00
python3 tests: verify `SetConstIterator` works in Python bindings 2025-07-24 06:53:45 +00:00
ruby SWIG: unit tests for exceptions 2025-04-04 05:37:55 +00:00
shared Unit tests: Fix One Definition Rule violation caused by overlinking 2025-01-10 13:17:26 +00:00
tutorial doc: Document arch override for API users 2024-09-17 09:08:11 +00:00
CMakeLists.txt Re-enable unit tests that use hidden (private) libdnf5 symbols 2024-06-10 11:29:01 +00:00