Share some of windows specific tests and for *unix
Share some of windows specific tests and for *unix

Tested on Linux with the USB serial ports PL2303.

(cherry-picked from e21cd49963df7455fa4f11f9ad170b949c456dee)
Change-Id: I37b887c7f3a9abe98a83fbf8af9587de330097b3
Reviewed-by: Denis Shienkov <6a9c747bd2ba446682324cf340d3b86f30cf4d55@gmail.com>

RoadWorksSoftware/QtSerialPort-OS2,RoadWorksSoftware/QtSerialPort-OS2