@ -438,32 +438,6 @@ string_matches_pattern(const char *str, const char *pattern)
return false ;
}
/*
* Clean out the test tablespace dir , or create it if it doesn ' t exist .
*
* On Windows , doing this cleanup here makes it possible to run the
* regression tests under a Windows administrative user account with the
* restricted token obtained when starting pg_regress .
*/
static void
prepare_testtablespace_dir ( void )
{
char testtablespace [ MAXPGPATH ] ;
snprintf ( testtablespace , MAXPGPATH , " %s/testtablespace " , outputdir ) ;
if ( directory_exists ( testtablespace ) )
{
if ( ! rmtree ( testtablespace , true ) )
{
fprintf ( stderr , _ ( " \n %s: could not remove test tablespace \" %s \" \n " ) ,
progname , testtablespace ) ;
exit ( 2 ) ;
}
}
make_directory ( testtablespace ) ;
}
/*
* Scan resultmap file to find which platform - specific expected files to use .
*
@ -2014,7 +1988,6 @@ help(void)
printf ( _ ( " --launcher=CMD use CMD as launcher of psql \n " ) ) ;
printf ( _ ( " --load-extension=EXT load the named extension before running the \n " ) ) ;
printf ( _ ( " tests; can appear multiple times \n " ) ) ;
printf ( _ ( " --make-testtablespace-dir create testtablespace directory \n " ) ) ;
printf ( _ ( " --max-connections=N maximum number of concurrent connections \n " ) ) ;
printf ( _ ( " (default is 0, meaning unlimited) \n " ) ) ;
printf ( _ ( " --max-concurrent-tests=N maximum number of concurrent tests in schedule \n " ) ) ;
@ -2073,12 +2046,10 @@ regression_main(int argc, char *argv[],
{ " load-extension " , required_argument , NULL , 22 } ,
{ " config-auth " , required_argument , NULL , 24 } ,
{ " max-concurrent-tests " , required_argument , NULL , 25 } ,
{ " make-testtablespace-dir " , no_argument , NULL , 26 } ,
{ NULL , 0 , NULL , 0 }
} ;
bool use_unix_sockets ;
bool make_testtablespace_dir = false ;
_stringlist * sl ;
int c ;
int i ;
@ -2204,9 +2175,6 @@ regression_main(int argc, char *argv[],
case 25 :
max_concurrent_tests = atoi ( optarg ) ;
break ;
case 26 :
make_testtablespace_dir = true ;
break ;
default :
/* getopt_long already emitted a complaint */
fprintf ( stderr , _ ( " \n Try \" %s -h \" for more information. \n " ) ,
@ -2259,9 +2227,6 @@ regression_main(int argc, char *argv[],
unlimit_core_size ( ) ;
# endif
if ( make_testtablespace_dir )
prepare_testtablespace_dir ( ) ;
if ( temp_instance )
{
FILE * pg_conf ;