tests/qtest: Support libqtest to build and run on Windows
commitb1d3095ccf61e4d1bd1d6273b9b7060fe7f20934
authorBin Meng <bin.meng@windriver.com>
Fri, 28 Oct 2022 04:57:28 +0000 (28 12:57 +0800)
committerThomas Huth <thuth@redhat.com>
Fri, 28 Oct 2022 09:17:12 +0000 (28 11:17 +0200)
tree0cc0c412be0252bdaaf4b12719db071189506363
parent84c662d2546feda2aeac21d09d4c71e8658062c0
tests/qtest: Support libqtest to build and run on Windows

At present the libqtest codes were written to depend on several
POSIX APIs, including fork(), kill() and waitpid(). Unfortunately
these APIs are not available on Windows.

This commit implements the corresponding functionalities using
win32 native APIs. With this change, all qtest cases can build
successfully on a Windows host, and we can start qtest testing
on Windows now.

Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221028045736.679903-4-bin.meng@windriver.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/libqtest.c