tests: Use native GTest utils to generate assets names

This commit is contained in:
Marco Trevisan (Treviño)
2023-08-17 21:17:26 +02:00
committed by Marco Trevisan
parent 135a015b6a
commit 1372d6f081
2 changed files with 10 additions and 8 deletions

View File

@@ -22,7 +22,6 @@
#include <cairo.h>
#include "fpi-assembling.h"
#include "fpi-image.h"
#include "test-config.h"
typedef struct
{
@@ -67,8 +66,7 @@ test_frame_assembling (void)
g_autoptr(FpImage) fp_img = NULL;
GSList *frames = NULL;
g_assert_false (SOURCE_ROOT == NULL);
path = g_build_path (G_DIR_SEPARATOR_S, SOURCE_ROOT, "tests", "vfs5011", "capture.png", NULL);
path = g_test_build_filename (G_TEST_DIST, "vfs5011", "capture.png", NULL);
img = cairo_image_surface_create_from_png (path);
data = cairo_image_surface_get_data (img);