guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/07: gnu: ceph: Disable failing test.


From: Marius Bakke
Subject: 07/07: gnu: ceph: Disable failing test.
Date: Sat, 15 Apr 2017 12:52:41 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 8c326cf644b2fda3f33eb8816387ff1bd2acc640
Author: Marius Bakke <address@hidden>
Date:   Sat Apr 15 00:09:24 2017 +0200

    gnu: ceph: Disable failing test.
    
    * gnu/packages/patches/ceph-disable-unittest-throttle.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Add it.
    * gnu/packages/storage.scm (ceph)[source]: Use it.
---
 gnu/local.mk                                       |  1 +
 .../patches/ceph-disable-unittest-throttle.patch   | 52 ++++++++++++++++++++++
 gnu/packages/storage.scm                           |  1 +
 3 files changed, 54 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index c78eeb5..cf9f5c7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -512,6 +512,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/calibre-no-updates-dialog.patch         \
   %D%/packages/patches/cdparanoia-fpic.patch                   \
   %D%/packages/patches/ceph-disable-cpu-optimizations.patch    \
+  %D%/packages/patches/ceph-disable-unittest-throttle.patch    \
   %D%/packages/patches/ceph-skip-collect-sys-info-test.patch   \
   %D%/packages/patches/ceph-skip-unittest_blockdev.patch       \
   %D%/packages/patches/chicken-CVE-2017-6949.patch             \
diff --git a/gnu/packages/patches/ceph-disable-unittest-throttle.patch 
b/gnu/packages/patches/ceph-disable-unittest-throttle.patch
new file mode 100644
index 0000000..08ae5f9
--- /dev/null
+++ b/gnu/packages/patches/ceph-disable-unittest-throttle.patch
@@ -0,0 +1,52 @@
+FIXME: This test broke after the gcc-5/glibc-2.25 core-updates merge.
+Not sure what's going on here, it hangs after spawning the first thread.
+
+diff --git a/src/test/common/Throttle.cc b/src/test/common/Throttle.cc
+index 5b6d73217d..40a477b2a3 100644
+--- a/src/test/common/Throttle.cc
++++ b/src/test/common/Throttle.cc
+@@ -216,44 +216,6 @@ TEST_F(ThrottleTest, wait) {
+   } while(!waited);
+ }
+ 
+-TEST_F(ThrottleTest, destructor) {
+-  Thread_get *t;
+-  {
+-    int64_t throttle_max = 10;
+-    Throttle *throttle = new Throttle(g_ceph_context, "throttle", 
throttle_max);
+-
+-    ASSERT_FALSE(throttle->get(5));
+-
+-    t = new Thread_get(*throttle, 7);
+-    t->create("t_throttle");
+-    bool blocked;
+-    useconds_t delay = 1;
+-    do {
+-      usleep(delay);
+-      if (throttle->get_or_fail(1)) {
+-      throttle->put(1);
+-      blocked = false;
+-      } else {
+-      blocked = true;
+-      }
+-      delay *= 2;
+-    } while(!blocked);
+-    delete throttle;
+-  }
+-
+-  { //
+-    // The thread is left hanging, otherwise it will abort().
+-    // Deleting the Throttle on which it is waiting creates a
+-    // inconsistency that will be detected: the Throttle object that
+-    // it references no longer exists.
+-    //
+-    pthread_t id = t->get_thread_id();
+-    ASSERT_EQ(pthread_kill(id, 0), 0);
+-    delete t;
+-    ASSERT_EQ(pthread_kill(id, 0), 0);
+-  }
+-}
+-
+ std::pair<double, std::chrono::duration<double> > test_backoff(
+   double low_threshhold,
+   double high_threshhold,
diff --git a/gnu/packages/storage.scm b/gnu/packages/storage.scm
index 7288a0f..388eb10 100644
--- a/gnu/packages/storage.scm
+++ b/gnu/packages/storage.scm
@@ -59,6 +59,7 @@
               (patches
                (search-patches "ceph-skip-unittest_blockdev.patch"
                                "ceph-skip-collect-sys-info-test.patch"
+                               "ceph-disable-unittest-throttle.patch"
                                "ceph-disable-cpu-optimizations.patch"))
               (modules '((guix build utils)))
               (snippet



reply via email to

[Prev in Thread] Current Thread [Next in Thread]