pool_test is flaky on OSX 10.9.5

オープン
#131 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
testing

調査の方向性

まず entityx/help/Pool_test.cc を読み、特に 65 行目の TestPoolPointers アサーションを確認してから、報告された不安定性を確認するために make test を繰り返し実行します。報告された macOS と Apple clang の環境でテストが安定して成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

It looks as if pool_test is not 100% reliable, at least not on my mac. Sometimes everything passes, but most of the time there is a single assertion the fails.

-------------------------------------------------------------------------------
TestPoolPointers
-------------------------------------------------------------------------------
/Users/zack/Dev/entityx-build/entityx/help/Pool_test.cc:45
...............................................................................

/Users/zack/Dev/entityx-build/entityx/help/Pool_test.cc:65: FAILED:
  REQUIRE( extrapolated_p16 != static_cast<void*>(p16) )
with expansion:
  0xb05540d9d67f0000 != 0xb05540d9d67f0000

===============================================================================
3 test cases - 1 failed (13 assertions - 1 failed)

Running make test over and over will yield success sometimes, but failure most of the time. This is built using Apple clang:

-- The C compiler identification is AppleClang 5.0.0.5000279
-- The CXX compiler identification is AppleClang 5.0.0.5000279

I thought that the failures were related to a change I had in a local branch but it turns out that this bejavior is also present in the current master.

主要言語
C++
スター
2.3k
フォーク
300
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alecthomas/entityx のほかの issue

alecthomas/entityx の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。