Skip to content

yank: Add chardev tests and fixes

Lukas Straub qemu-devel 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest4 patches 0 repliesNew
  2. v74 patches 1 replySuperseded
  3. v64 patches 2 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v54 patches0 repliesSuperseded
v44 patches4 repliesSuperseded
v34 patches3 repliesSuperseded
v25 patches0 repliesSuperseded
v15 patches11 repliesSuperseded

Changes from the cover letter

-v8:
-test: use custom thread to accept() instead of qio_net_listener

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4chardev/char.c: Move object_property_try_add_child out of chardev_newchardev/char.c+24 -180 replies
2/4chardev/char.c: Always pass id to chardev_newchardev/char.c+2 -20 replies
3/4chardev: Fix yank with the chardev-change casechardev/char-socket.c chardev/char.c include/chardev/char.h+48 -100 replies
4/4tests: Add tests for yank with the chardev-change caseMAINTAINERS tests/unit/meson.build tests/unit/test-yank.c+252 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauLi Zhang
1/4R-b T-b
2/4R-b T-b
3/4R-b T-b
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/4] yank: Add chardev tests and fixes

Hello Everyone,
These patches increase test coverage for yank, add tests and fix bugs and crashes in yank in combination with chardev-change.
Please Review.

Regards,
Lukas Straub

Changes:
-v8:
-test: use custom thread to accept() instead of qio_net_listener

-v7:
-test: fix patchew error by not using macros

-v6:
-test: (hopefully) fix test on OSX by using qio_net_listener on the dummy
server socket so new clients get accept()'ed properly

-v5:
-test: fix memory leak

-v4:
-test: fix CharChangeTestConfig structs on stack going out of scope -test: move after bugfixes

-v3:
-Base on <[email protected]>
([PATCH 0/2] yank: Always link full yank code)
-Drop patch 1 (tests: Use the normal yank code instead of stubs in relevant tests)

-v2:
-test: add license
-test: factorize testcases to a single function
-test: test chardev_change with initialization of new chardev failing -fix chardev_change with initialization of new chardev failing -add reviewed-by and tested-by tags

Based-on: <[email protected]> ([PATCH 0/2] yank: Always link full yank code)

Lukas Straub (4):
chardev/char.c: Move object_property_try_add_child out of chardev_new chardev/char.c: Always pass id to chardev_new
chardev: Fix yank with the chardev-change case
tests: Add tests for yank with the chardev-change case

 MAINTAINERS            |   1 +
 chardev/char-socket.c  |  20 +++-
 chardev/char.c         |  77 ++++++++-----
 include/chardev/char.h |   3 +
 tests/unit/meson.build |   3 +-
 tests/unit/test-yank.c | 249 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 324 insertions(+), 29 deletions(-)
 create mode 100644 tests/unit/test-yank.c

--
2.30.2