First incarnation of Ruby-based pit test suite

This commit is contained in:
Mike Dvorkin
2010-08-04 22:53:44 -07:00
parent 0ca72c94ef
commit 1f2ddba847
6 changed files with 98 additions and 12 deletions

View File

@@ -111,7 +111,7 @@ time_t pit_arg_date(char **arg, char *required)
strcpy(format, "%m/%d/%Y %H:%M"); /* 10/10/1992 19:30 */
}
} else {
if (strlen(*arg) > 12) {
if (strlen(*arg) >= 12) {
if (alpha_date) {
strcpy(format, "%b %d, %Y %H"); /* Oct 10, 1992 19 */
} else {

View File

@@ -12,7 +12,8 @@ static char *pit_file_name()
static char file_name[128];
if (!*file_name) {
strcpy(file_name, expand_path(PITFILE, file_name));
char *penv = getenv("PITFILE");
strcpy(file_name, expand_path(penv ? penv : PITFILE, file_name));
}
return file_name;