summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs
diff options
context:
space:
mode:
authorManoj Saun <manojsingh.saun@windriver.com>2023-03-27 07:29:39 +0000
committerKhem Raj <raj.khem@gmail.com>2023-03-28 10:44:00 -0700
commit03e00bf122123cf0429105196335aeeeeb90a7d5 (patch)
tree67e654c859999ba3864ec7022993c659e232b43c /meta-oe/recipes-dbs
parentf65b0527849fdde2d486b31feb75576cd40af605 (diff)
downloadmeta-openembedded-03e00bf122123cf0429105196335aeeeeb90a7d5.tar.gz
postgresql: fix ptest failure of sysviews test
In postgresql sysview ptest are failing due to hidden build info in pg_config table. The information is hidden due to existing patch 0001-config_info.c-not-expose-build-info.patch So for passing the test we need to reduce the row count in the sysviews test. Also for test results to be shown as pass we need to reduce the row count for the expected count in the sysviews.out file. Signed-off-by: Manoj Saun <manojsingh.saun@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch42
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb1
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch
new file mode 100644
index 0000000000..4db36d26fd
--- /dev/null
+++ b/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch
@@ -0,0 +1,42 @@
1From 9f81377dddfe32d950844d7053020a36b40fce08 Mon Sep 17 00:00:00 2001
2From: Manoj Saun <manojsingh.saun@windriver.com>
3Date: Wed, 22 Mar 2023 08:07:26 +0000
4Subject: [PATCH] postgresql: fix ptest failure of sysviews
5
6The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info
7in pg_config table which reduces the count of rows from pg_config and leads to
8sysviews test failure.
9To fix it we need to reduce the count of parameters in sysviews test.
10Also we need to reduce the row count in expected result of sysview test
11to make the test output shown as pass.
12
13Upstream-Status: Inappropriate [oe specific]
14
15Signed-off-by: Manoj Saun <manojsingh.saun@windriver.com>
16---
17 src/test/regress/expected/sysviews.out | 2 +-
18 src/test/regress/sql/sysviews.sql | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
20
21--- a/src/test/regress/expected/sysviews.out
22+++ b/src/test/regress/expected/sysviews.out
23@@ -29,7 +29,7 @@ select name, ident, parent, level, total
24 (1 row)
25
26 -- At introduction, pg_config had 23 entries; it may grow
27-select count(*) > 20 as ok from pg_config;
28+select count(*) > 13 as ok from pg_config;
29 ok
30 ----
31 t
32--- a/src/test/regress/sql/sysviews.sql
33+++ b/src/test/regress/sql/sysviews.sql
34@@ -18,7 +18,7 @@ select name, ident, parent, level, total
35 from pg_backend_memory_contexts where level = 0;
36
37 -- At introduction, pg_config had 23 entries; it may grow
38-select count(*) > 20 as ok from pg_config;
39+select count(*) > 13 as ok from pg_config;
40
41 -- We expect no cursors in this test; see also portals.sql
42 select count(*) = 0 as ok from pg_cursors;
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb
index befb0caec0..5c95e4da32 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb
+++ b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb
@@ -8,6 +8,7 @@ SRC_URI += "\
8 file://0001-Improve-reproducibility.patch \ 8 file://0001-Improve-reproducibility.patch \
9 file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \ 9 file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \
10 file://0001-config_info.c-not-expose-build-info.patch \ 10 file://0001-config_info.c-not-expose-build-info.patch \
11 file://0001-postgresql-fix-ptest-failure-of-sysviews.patch \
11" 12"
12 13
13SRC_URI[sha256sum] = "99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7" 14SRC_URI[sha256sum] = "99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7"