add poll function test c file