Bug report #14308

TestVectorLayerJoinBuffer hangs if database is not available

Added by Sandro Santilli about 1 year ago. Updated about 1 year ago.

Status:Closed Start Date:02/16/2016
Priority:Normal Due date:
Assigned to:Sandro Santilli % Done:

0%

Category:Testsuite
Target version:Version 2.14
Platform: Pull Request or Patch supplied:Yes
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution:fixed/implemented Tag:

Description

As with #14269, this other test is hanging due to missing database:

ctest -V -R vectorlayerjoin
...
102: QDEBUG : TestVectorLayerJoinBuffer::initTestCase() src/providers/postgres/qgspostgresconn.cpp: 207: (QgsPostgresConn) [0ms] New PostgreSQL connection for dbname='qgis_test' host=localhost port=5432 user='postgres' password='postgres' sslmode=disable
102: credentials for dbname='qgis_test' host=localhost port=5432 user='postgres' password='postgres' sslmode=disable
102: message: FATAL:  database "qgis_test" does not exist
102:

And sits there forever.

Associated revisions

Revision 6365eb7ee6edcd66aaee11524aba25ce892f4152
Added by Sandro Santilli about 1 year ago

Do not hard-code database connection parameters

Rely on libpq defaults instead (overridable via environment)

Fixes #14308

History

Updated by Sandro Santilli about 1 year ago

  • Status changed from Open to In Progress

Updated by Sandro Santilli about 1 year ago

  • Pull Request or Patch supplied changed from No to Yes

Ready for test by Travis: https://github.com/qgis/QGIS/pull/2793

Updated by Sandro Santilli about 1 year ago

  • Status changed from In Progress to Closed

Updated by Sandro Santilli about 1 year ago

  • Resolution set to fixed/implemented

Also available in: Atom