[glom] Tests: Avoid a too-long path with recent PostgreSQL.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Tests: Avoid a too-long path with recent PostgreSQL.
- Date: Mon, 23 Sep 2013 09:28:05 +0000 (UTC)
commit 2a7a840d11173bc24737f72abd729ca7c2633b25
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 749e0bf..d9f12ef 100644
--- a/tests/test_selfhosting_new_from_example_strangepath.cc
+++ b/tests/test_selfhosting_new_from_example_strangepath.cc
@@ -36,9 +36,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]