Merge "Make flag write sequential in XXX_empty() tests" into qt-dev