2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 04:27:55 +00:00
Files
xcat-core/xCAT-test
Daniel Hilst 207ec20f83 test(xcatd): the purity check misses exited() mutating in place
The subtest composed the two calls as exited(forked($pace,10),11), so exited()
only ever got forked()'s throwaway intermediate to mutate. An exited() that
wrote in place left $pace untouched and the assertion stayed green -- the
review that found this confirmed it by making exited() impure and watching the
file pass.

Check each on a state it was handed directly. Verified the other way round:
making exited() assign into its argument and return the same reference now
reddens both new assertions, where before it reddened nothing.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-01 20:02:18 -03:00
..
2018-04-26 15:15:47 -04:00