summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2012-05-17 02:05:22 +0000
committerMichael Paquier2012-05-17 02:08:33 +0000
commitbce01d5a276b4080a69dde1b702e5fb0566ea7e1 (patch)
treeb74f39f0d52b5fdcb686341b45fc03e3fb607ac7
parent8751b72ac99e1f1bb7a7ffcaf5f100077710e09b (diff)
Change xc_copy to use dedicated regression data folder
In the test xc_copy a file used for a successive output and input of COPY was directed to folder /tmp/, which may lead to problems because of undeleted data depending on the system used. So change this file path to use the path used by data files of regressions.
-rw-r--r--src/test/regress/input/xc_copy.source (renamed from src/test/regress/sql/xc_copy.sql)4
-rw-r--r--src/test/regress/output/xc_copy.source (renamed from src/test/regress/expected/xc_copy.out)4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/regress/sql/xc_copy.sql b/src/test/regress/input/xc_copy.source
index ee971ec563..2376dd9e36 100644
--- a/src/test/regress/sql/xc_copy.sql
+++ b/src/test/regress/input/xc_copy.source
@@ -70,11 +70,11 @@ insert into xccopydef (id1) values (4567);
select * from xccopydef order by idseq;
-copy xccopydef (id1, id2) to '/tmp/copydefout.dat' (format 'binary');
+copy xccopydef (id1, id2) to '@abs_builddir@/results/copydefout.data' (format 'binary');
truncate xccopydef;
-copy xccopydef (id1, id2) from '/tmp/copydefout.dat' (format 'binary');
+copy xccopydef (id1, id2) from '@abs_builddir@/results/copydefout.data' (format 'binary');
select * from xccopydef order by idseq;
diff --git a/src/test/regress/expected/xc_copy.out b/src/test/regress/output/xc_copy.source
index 2b0108613c..828325c06d 100644
--- a/src/test/regress/expected/xc_copy.out
+++ b/src/test/regress/output/xc_copy.source
@@ -60,9 +60,9 @@ select * from xccopydef order by idseq;
6 | 4567 | \x13005c27217c27 | \x00 | \.\000"\'!|'\N Node type: C | \.\000"\'!|' Node type: C | \N | \x0a33 | | 27.433
(6 rows)
-copy xccopydef (id1, id2) to '/tmp/copydefout.dat' (format 'binary');
+copy xccopydef (id1, id2) to '@abs_builddir@/results/copydefout.data' (format 'binary');
truncate xccopydef;
-copy xccopydef (id1, id2) from '/tmp/copydefout.dat' (format 'binary');
+copy xccopydef (id1, id2) from '@abs_builddir@/results/copydefout.data' (format 'binary');
select * from xccopydef order by idseq;
idseq | id1 | def1 | def2 | def3 | def4 | def5 | def6 | id2 | def7
-------+------+------------------+------+-----------------------------+---------------------------+------+--------+-----------+--------