This was reported as PR45635, committed first as 72a9e7c9, reverted by 188f5cde, and now recommitted with the test change.