Go to the documentation of this file.
48 printf(
"%s: failed to open '%s': %s\r\n",
63 if (dent->
d_name[0] !=
'.')
69 if (str.
endsWith((
const char *)
"Test"))
74 printf(
"%s: failed to add test '%s' to internal Index\n",
#define EXIT_FAILURE
Unsuccessful termination.
C int errno
The lvalue errno is used by many functions to return error values.
int closedir(DIR *dirp)
Close a directory stream.
int scan(const char *path)
Scan filesystem path for tests.
struct dirent * readdir(DIR *dirp)
Read a directory.
Index< ExternalTest, MaximumExternalTests > m_externalTests
External tests that are detected.
#define DT_REG
This is a regular file.
Represents external test program.
DIR * opendir(const char *dirname)
Open directory associated with file descriptor.
void deleteAll()
Removes and delete()'s all items.
int printf(const char *format,...)
Output a formatted string to standard output.
Represents a directory entry.
char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
DirectoryScanner(int argc, char **argv)
Constructor.
int m_argc
Program argument count.
A type representing a directory stream.
#define DT_DIR
This is a directory.
~DirectoryScanner()
Destructor.
#define EXIT_SUCCESS
Successful termination.
bool endsWith(const String &suffix) const
Tests if this String ends with the specified suffix.
char d_name[DIRLEN]
Name of entry.
char ** m_argv
Program argument values.
virtual bool insert(Size &position, T *item)
Adds the given item, if possible.
int snprintf(char *buffer, unsigned int size, const char *fmt,...)
Write a formatted string into a buffer.