Feature #10321
closed[PATCH] test st_foreach{,_check} for packed-to-unpack change
Description
st: test packed-to-unpacked transitions during iteration
The st_foreach and st_foreach_check functions support transitioning
from a packed to an unpacked state during iteration. However, this
functionality did not get exercised by the current test suite until
now. This should help us prevent breakage when making modifications
to st.
This is mainly for improving [misc #10278].
I'll commit this patch separately soon unless there's objections.
Files
Updated by normalperson (Eric Wong) almost 10 years ago
- Related to Misc #10278: [RFC] st.c: use ccan linked list added
Updated by Anonymous almost 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r47856.
st: test packed-to-unpacked transitions during iteration
The st_foreach and st_foreach_check functions support transitioning
from a packed to an unpacked state during iteration. However, this
functionality did not get exercised by the current test suite until
now. This should help us prevent breakage when making modifications
to st.
- ext/-test-/st/foreach/extconf.rb: new file
- ext/-test-/st/foreach/foreach.c: ditto
- test/-ext-/st/test_foreach.rb: ditto
[Feature #10321]