tests: posix: Add new testcases for posix APIs

Add error condition to test pthread. Like use pthread with
uninitialize stack or stack size is 0, and verify the result
is as expected.

Signed-off-by: Jian Kang <jianx.kang@intel.com>
2 files changed