tests: cpp: fixed set_ioflags() calls