tests: Add missing dependency on glib-2.0

It has previously been implicitly pulled in by libsysprof-capture, but
that will change in future.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-06-30 16:23:50 +01:00
parent 3eb0f3e964
commit d1a8dc40f5
10 changed files with 18 additions and 4 deletions

View File

@ -20,6 +20,7 @@
#include "config.h"
#include <glib.h>
#include <stddef.h>
#include <rax.h>
#include <sysprof.h>

View File

@ -20,6 +20,7 @@
#include "config.h"
#include <glib.h>
#include <sysprof-capture.h>
static struct {

View File

@ -12,24 +12,29 @@ test_cflags = [
'-DSYSPROF_COMPILATION=1',
]
test_capture_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
]
test_capture = executable('test-capture', 'test-capture.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test_capture_cursor = executable('test-capture-cursor', 'test-capture-cursor.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test_mapped_ring_buffer = executable('test-mapped-ring-buffer', 'test-mapped-ring-buffer.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
find_temp_allocs = executable('find-temp-allocs', 'find-temp-allocs.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test('test-capture', test_capture, env: test_env)

View File

@ -21,6 +21,7 @@
#include "config.h"
#include <cairo.h>
#include <glib.h>
#include <stddef.h>
#include <rax.h>
#include <sysprof.h>

View File

@ -1,4 +1,5 @@
#include <fcntl.h>
#include <glib.h>
#include <sysprof.h>
#include "sysprof-platform.h"

View File

@ -1,4 +1,5 @@
#include <fcntl.h>
#include <glib.h>
#include <sysprof.h>
#include "sysprof-platform.h"

View File

@ -18,6 +18,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <glib.h>
#include <glib/gstdio.h>
#include <sysprof-capture.h>

View File

@ -21,6 +21,7 @@
#include "config.h"
#include <fcntl.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <string.h>
#include <sysprof-capture.h>

View File

@ -1,5 +1,6 @@
#include "mapped-ring-buffer.h"
#include <glib.h>
#include <stdint.h>
static gsize real_count;

View File

@ -1,3 +1,4 @@
#include <glib.h>
#include <sysprof.h>
static const SysprofCaptureSample *