Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
67a4c24b
Commit
67a4c24b
authored
Jan 19, 2007
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pg_regress breakage for PL and contrib tests, by not requiring that
"input" and "output" dirs be necessarily present.
parent
506b2928
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+12
-3
No files found.
src/test/regress/pg_regress.c
View file @
67a4c24b
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.2
6 2007/01/19 16:42:24
alvherre Exp $
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.2
7 2007/01/19 21:21:13
alvherre Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -478,11 +478,20 @@ convert_sourcefiles_in(char *source, char *dest, char *suffix)
pgfnames_cleanup
(
names
);
}
/* Create the .sql and .out files from the .source files, if any */
static
void
convert_sourcefiles
(
void
)
{
convert_sourcefiles_in
(
"input"
,
"sql"
,
"sql"
);
convert_sourcefiles_in
(
"output"
,
"expected"
,
"out"
);
struct
stat
st
;
int
ret
;
ret
=
stat
(
"input"
,
&
st
);
if
(
ret
==
0
&&
S_ISDIR
(
st
.
st_mode
))
convert_sourcefiles_in
(
"input"
,
"sql"
,
"sql"
);
ret
=
stat
(
"output"
,
&
st
);
if
(
ret
==
0
&&
S_ISDIR
(
st
.
st_mode
))
convert_sourcefiles_in
(
"output"
,
"expected"
,
"out"
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment