[HarfBuzz] harfbuzz-ng: Branch 'master' - 2 commits

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu May 12 07:49:45 PDT 2011


 test/Makefile.am |    1 +
 test/test-blob.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c098c3acc8c48b4b6883c50c9a87e81dbe98ba24
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu May 12 10:49:30 2011 -0400

    [test/blob] Use MAP_ANON instead of MAP_ANONYMOUS
    
    More portable.

diff --git a/test/test-blob.c b/test/test-blob.c
index beb23a5..f3f7a86 100644
--- a/test/test-blob.c
+++ b/test/test-blob.c
@@ -169,7 +169,7 @@ fixture_init (fixture_t *fixture, gconstpointer user_data)
     {
       uintptr_t pagesize = get_pagesize ();
 
-      data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+      data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
       g_assert (data != (char *) -1);
       memcpy ((char *) data, test_data, sizeof (test_data));
       mprotect ((char *) data, pagesize, PROT_READ);
commit 8329eb7c6ca39e162228733a2210e643b1a1019d
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu May 12 01:39:17 2011 -0400

    [test/shape] Add simplest test for hb_shape()

diff --git a/test/Makefile.am b/test/Makefile.am
index 6956bba..f2eaff0 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -17,6 +17,7 @@ TEST_PROGS += \
 	test-common \
 	test-font \
 	test-object \
+	test-shape \
 	test-unicode \
 	$(NULL)
 



More information about the HarfBuzz mailing list