C++: cmake: move the build instruction for the tests in the tests dir

This commit is contained in:
Olivier Goffart 2023-01-16 12:26:56 +01:00 committed by Olivier Goffart
parent 0d23478469
commit 8d0cdc6ec2
4 changed files with 55 additions and 51 deletions

View file

@ -161,7 +161,7 @@ TEST_CASE("Image")
REQUIRE(!img.path().has_value());
}
img = Image::load_from_path(SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
img = Image::load_from_path(SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
{
auto size = img.size();
REQUIRE(size.width == 128.);
@ -170,7 +170,7 @@ TEST_CASE("Image")
{
auto actual_path = img.path();
REQUIRE(actual_path.has_value());
REQUIRE(*actual_path == SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
REQUIRE(*actual_path == SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
}
}