Fix incorrect range in pg_regress comment.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Feb 2025 03:37:13 +0000 (22:37 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Feb 2025 03:37:13 +0000 (22:37 -0500)
A comment in pg_regress incorrectly stated that alternative
output files could be named test_{i}.out with 0 < i <= 9.
However, the valid range is actually 0 <= i <= 9.
(The user-facing docs have this right already.)

Author: Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>
Discussion: https://postgr.es/m/6e6c4dea-07a1-4a83-9bb7-77b9b3324c37@tantorlabs.com

src/test/regress/pg_regress.c

index 61a234ae218104c30d4a0007cd94678014e49ac3..5d85dcc62f0a5713b1914badccd1b29f1ec113e9 100644 (file)
@@ -1335,7 +1335,7 @@ make_directory(const char *dir)
 }
 
 /*
- * In: filename.ext, Return: filename_i.ext, where 0 < i <= 9
+ * In: filename.ext, Return: filename_i.ext, where 0 <= i <= 9
  */
 static char *
 get_alternative_expectfile(const char *expectfile, int i)