[AIX][test-suite] Use stat() on AIX to access d_type field (of dirent)

This patch makes use of stat() to access file type information, as the d_type
field of dirent.h is unavailable on AIX.

Differential Revision: https://reviews.llvm.org/D102411
1 file changed