[glom/glom-1-22] Tests: Avoid a too-long path with recent PostgreSQL.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-22] Tests: Avoid a too-long path with recent PostgreSQL.
- Date: Mon, 23 Sep 2013 10:51:59 +0000 (UTC)
commit 2d2010622f8b6a7413948499d23e02e16feebdfe
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 23 11:21:48 2013 +0200
Tests: Avoid a too-long path with recent PostgreSQL.
...est_selfhosting_new_from_example_strangepath.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_selfhosting_new_from_example_strangepath.cc
b/tests/test_selfhosting_new_from_example_strangepath.cc
index 9207e20..2309bd9 100644
--- a/tests/test_selfhosting_new_from_example_strangepath.cc
+++ b/tests/test_selfhosting_new_from_example_strangepath.cc
@@ -29,9 +29,14 @@
static bool test(Glom::Document::HostingMode hosting_mode)
{
Glom::Document document;
+ //Note: We avoid using a path that is longer than 107 characters to avoid a PostgreSQL error.
+ //(107 == sizeof(struct sockaddr_un.sun_path) at least here). murrayc.
+ //See http://lists.debian.org/debian-wb-team/2013/05/msg00015.html
+ //TODO: Fail with long paths meaningfully in the libglom API too, and check for that?
const bool recreated =
test_create_and_selfhost_from_example("example_music_collection.glom", document,
- hosting_mode, "path with space and \" quote and single ' quote and $ dollar sign and / forward slash
and \backwards slash ");
+ hosting_mode, "path w space and \" and ' and $ and / and \\ ");
+ //hosting_mode, "path with space and \" quote and single ' quote and $ dollar sign and / forward slash
and \\ backwards slash ");
if(!recreated)
{
std::cerr << "Recreation failed." << std::endl;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]