From a58323a388d2753fc48ecad0695e9f88110678c4 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Thu, 4 Aug 2016 23:04:39 -0700 Subject: [PATCH] Adds more info regarding bug 15776 (#16315) Related to github issue #15776 --- tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp | 17 +++++++++++++++++ tests/cpp-tests/Classes/BugsTest/Bug-15776.h | 3 +++ 2 files changed, 20 insertions(+) diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp index 60b168ede6..fbac2a0868 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp @@ -11,6 +11,13 @@ USING_NS_CC; + +// +// IMPORTANT: +// THIS TEST WILL CRASH ON TextureCache::addImage() +// THIS IS NOT A BUG +// It is expected to crash there +// bool Bug15776Layer::init() { if (BugsTestBase::init()) @@ -24,3 +31,13 @@ bool Bug15776Layer::init() return false; } + +std::string Bug15776Layer::title() const +{ + return "Testing Issue #15776"; +} + +std::string Bug15776Layer::subtitle() const +{ + return "It should crash on TextureCache::addImage()"; +} diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-15776.h b/tests/cpp-tests/Classes/BugsTest/Bug-15776.h index 45a8b1a7f4..503b7fd1d1 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-15776.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-15776.h @@ -17,6 +17,9 @@ public: CREATE_FUNC(Bug15776Layer); virtual bool init() override; + + virtual std::string title() const override; + virtual std::string subtitle() const override; };