From db328d2a861f5aedec900e44fbe1fd542b307afb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 22 Jun 2025 12:06:15 +0200 Subject: unified samples app in c++, unit testing wip --- gunit_tests/drawTestBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gunit_tests/drawTestBase.cpp') diff --git a/gunit_tests/drawTestBase.cpp b/gunit_tests/drawTestBase.cpp index 2fdc9c5..018132d 100644 --- a/gunit_tests/drawTestBase.cpp +++ b/gunit_tests/drawTestBase.cpp @@ -67,7 +67,7 @@ void DrawTestBase::compareWithRefImage() { if (totDiff > 0) { fs::path diffPath = diffDir / ::testing::UnitTest::GetInstance()->current_test_info()->name(); - targetPath.replace_extension(".png"); + diffPath.replace_extension(".png"); stbi_write_png((char*)diffPath.c_str(), (int32_t)w, (int32_t)h, 4, diffImg, (int32_t)(4 * w)); } -- cgit v1.3.1-4-g156e