[PATCH] D26232: [XRay][compiler-rt] XRay Buffer Queue

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 16:19:38 PST 2016


dberris added inline comments.


================
Comment at: compiler-rt/trunk/lib/xray/tests/unit/buffer_queue_test.cc:28
+  BufferQueue::Buffer Buf;
+  ASSERT_FALSE(Buffers.getBuffer(Buf));
+  ASSERT_NE(nullptr, Buf.Buffer);
----------------
rSerge wrote:
> Here and in the other places `ASSERT_NE(Buffers.getBuffer(Buf), 0)` would give more information in case the test fails: the error code would get into the report produced by gtest.
> Forcing it to boolean producess less informative report:
> ```
> Value of: Buffers.getBuffer(Buf)
> Actual: true
> Expected: false
> ```
> http://lab.llvm.org:8011/builders/clang-native-aarch64-full/builds/100/steps/ninja%20check%202/logs/FAIL%3A%20XRay-Unit%3A%3ABufferQueueTest.GetAndRelease
Good point -- I'll go improve these in a separate patch.

Thanks @rSerge!


Repository:
  rL LLVM

https://reviews.llvm.org/D26232





More information about the llvm-commits mailing list