port.c does not work in CONFIGURE_TEST mode?