[PATCH] Fix testRock on FreeBSD

From: Kinkie <gkinkie_at_gmail.com>
Date: Wed, 19 Sep 2012 18:38:00 +0200

Hi all,
  I've done some testing on FreeBSD 9 (which fails the unit tests in testRock).
Apparently the issue is caused by shm_open in the ipc channels, which
fails with EINVAL because the shm path is not absolute.
This patch changes the path for the unit test shm to /tmp; it is
confirmed working on FreeBSD-9; couldn't be tested on OpenSuSE yet.

=== modified file 'src/tests/testRock.cc'
--- src/tests/testRock.cc 2012-08-31 16:57:39 +0000
+++ src/tests/testRock.cc 2012-09-19 13:26:45 +0000
@@ -45,7 +45,7 @@
         throw std::runtime_error("Failed to clean test work directory");

     // use current directory for shared segments (on path-based OSes)
- Ipc::Mem::Segment::BasePath = ".";
+ Ipc::Mem::Segment::BasePath = "/tmp";

     Store::Root(new StoreController);

-- 
    /kinkie
Received on Wed Sep 19 2012 - 16:38:07 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 21 2012 - 12:00:07 MDT