Updated sequence and sequence tests
This commit is contained in:
parent
f206c62537
commit
9788c796a8
2 changed files with 17 additions and 39 deletions
|
|
@ -3,40 +3,18 @@
|
|||
|
||||
#include "kompute/Kompute.hpp"
|
||||
|
||||
//TEST(TestSequence, CmdBufSequenceBeginEnd)
|
||||
//{
|
||||
// kp::Manager mgr;
|
||||
//
|
||||
// {
|
||||
// std::shared_ptr<kp::Sequence> sq =
|
||||
// mgr.sequence("newSequence");
|
||||
//
|
||||
// EXPECT_TRUE(sq->eval());
|
||||
// EXPECT_TRUE(!sq->isRecording());
|
||||
// EXPECT_TRUE(sq->begin());
|
||||
// EXPECT_TRUE(sq->isRecording());
|
||||
// EXPECT_TRUE(!sq->begin());
|
||||
// EXPECT_TRUE(sq->isRecording());
|
||||
// EXPECT_TRUE(sq->end());
|
||||
// EXPECT_TRUE(!sq->isRecording());
|
||||
// EXPECT_TRUE(!sq->end());
|
||||
// EXPECT_TRUE(!sq->isRecording());
|
||||
// EXPECT_TRUE(sq->eval());
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//TEST(TestSequence, SequenceDestructorViaManager)
|
||||
//{
|
||||
// std::shared_ptr<kp::Sequence> sq = nullptr;
|
||||
//
|
||||
// {
|
||||
// kp::Manager mgr;
|
||||
//
|
||||
// sq = mgr.sequence("newSequence");
|
||||
//
|
||||
// EXPECT_TRUE(sq->isInit());
|
||||
// }
|
||||
//
|
||||
// EXPECT_FALSE(sq->isInit());
|
||||
//}
|
||||
TEST(TestSequence, SequenceDestructorViaManager)
|
||||
{
|
||||
std::shared_ptr<kp::Sequence> sq = nullptr;
|
||||
|
||||
{
|
||||
kp::Manager mgr;
|
||||
|
||||
sq = mgr.sequence();
|
||||
|
||||
EXPECT_TRUE(sq->isInit());
|
||||
}
|
||||
|
||||
EXPECT_FALSE(sq->isInit());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue