mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -20,6 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stddef.h>
|
||||
#include <rax.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <sysprof-capture.h>
|
||||
|
||||
static struct {
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#include <glib.h>
|
||||
#include <stddef.h>
|
||||
#include <rax.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include <fcntl.h>
|
||||
#include <glib.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
#include "sysprof-platform.h"
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include <fcntl.h>
|
||||
#include <glib.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
#include "sysprof-platform.h"
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <sysprof-capture.h>
|
||||
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <string.h>
|
||||
#include <sysprof-capture.h>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#include "mapped-ring-buffer.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
static gsize real_count;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#include <glib.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
static const SysprofCaptureSample *
|
||||
|
||||
Reference in New Issue
Block a user