mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 14:48:24 +00:00
test Scene/Canvas: Fix maximum size for big size test
In some development environments, -1 of uint32_t may become 0.
This commit is contained in:
parent
70840218d6
commit
f28a0d9b5c
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ TEST_CASE("Scene Memory Reservation", "[tvgScene]")
|
|||
REQUIRE(scene->reserve(0) == Result::Success);
|
||||
|
||||
//Too Big Size
|
||||
REQUIRE(scene->reserve(-1) == Result::FailedAllocation);
|
||||
REQUIRE(scene->reserve(UINT32_MAX) == Result::FailedAllocation);
|
||||
}
|
||||
|
||||
TEST_CASE("Scene Clear", "[tvgScene]")
|
||||
|
|
|
@ -40,7 +40,7 @@ TEST_CASE("Memory Reservation", "[tvgSwCanvasBase]")
|
|||
REQUIRE(canvas->reserve(0) == Result::Success);
|
||||
|
||||
//Too big size
|
||||
REQUIRE(canvas->reserve(-1) == Result::FailedAllocation);
|
||||
REQUIRE(canvas->reserve(UINT32_MAX) == Result::FailedAllocation);
|
||||
|
||||
REQUIRE(Initializer::term(CanvasEngine::Sw) == Result::Success);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue