mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Merge branch 'fix-tests' into 'master'
Fix tests Closes #7 and #21 See merge request GNOME/sysprof!21
This commit is contained in:
@ -499,7 +499,7 @@ sysprof_capture_writer_new_from_fd (int fd,
|
||||
|
||||
header->magic = SYSPROF_CAPTURE_MAGIC;
|
||||
header->version = 1;
|
||||
#ifdef G_LITTLE_ENDIAN
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
header->little_endian = TRUE;
|
||||
#else
|
||||
header->little_endian = FALSE;
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "sysprof-platform.h"
|
||||
#include "sysprof-capture-util-private.h"
|
||||
|
||||
static void
|
||||
copy_into (GHashTable *src,
|
||||
@ -54,7 +55,7 @@ test_reader_basic (void)
|
||||
|
||||
writer = sysprof_capture_writer_new ("capture-file", 0);
|
||||
g_assert (writer != NULL);
|
||||
g_assert_cmpint (sysprof_capture_writer_get_buffer_size (writer), ==, 4096*64);
|
||||
g_assert_cmpint (sysprof_capture_writer_get_buffer_size (writer), ==, _sysprof_getpagesize()*64);
|
||||
|
||||
sysprof_capture_writer_flush (writer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user