Re: [PATCH] tests: unit: simplify test-visitor-serialization list tests

2022-09-05 Thread Stefan Weil via
Am 05.09.22 um 13:00 schrieb Paolo Bonzini: test-visitor-serialization list tests is using an "if" to pick either the first element of the list or the next one. This was done presumably to mimic the code that creates the list, which has to fill in either the head pointer or the next pointer of t

Re: [PATCH] tests: unit: simplify test-visitor-serialization list tests

2022-09-05 Thread Markus Armbruster
Paolo Bonzini writes: > test-visitor-serialization list tests is using an "if" to pick either the > first > element of the list or the next one. This was done presumably to mimic the > code that creates the list, which has to fill in either the head pointer > or the next pointer of the last ele

[PATCH] tests: unit: simplify test-visitor-serialization list tests

2022-09-05 Thread Paolo Bonzini
test-visitor-serialization list tests is using an "if" to pick either the first element of the list or the next one. This was done presumably to mimic the code that creates the list, which has to fill in either the head pointer or the next pointer of the last element. However, the code in the ins