It was failing with missing include files.
While here, destroy the ugly "../src/..." include
paths used in the tests that was just hacking around
this problem in the Makefile:
sed -i s/..\\/src\\/// tests/*.c
../src/wayland-os.c \
$(test_runner_src)
-AM_CFLAGS = $(GCC_CFLAGS) $(FFI_CFLAGS) -I../src
+AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
+AM_CFLAGS = $(GCC_CFLAGS) $(FFI_CFLAGS)
LDADD = $(top_builddir)/src/libwayland-util.la \
$(top_builddir)/src/libwayland-server.la \
-lrt -ldl $(FFI_LIBS)
#include <stdlib.h>
#include <assert.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
TEST(array_init)
#include <sys/types.h>
#include <sys/stat.h>
-#include "../src/wayland-server.h"
+#include "wayland-server.h"
#include "test-runner.h"
struct client_destroy_listener {
#include <sys/types.h>
#include <sys/stat.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
static const char message[] = "Hello, world";
#include <assert.h>
#include <unistd.h>
#include <signal.h>
-#include "../src/wayland-server.h"
+#include "wayland-server.h"
#include "test-runner.h"
static int
#include <string.h>
#include <time.h>
#include <assert.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
volatile double global_d;
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
TEST(fixed_double_conversions)
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
TEST(list_init)
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
TEST(map_insert_new)
#include <stdio.h>
#include <sys/epoll.h>
-#include "../src/wayland-private.h"
+#include "wayland-private.h"
#include "test-runner.h"
-#include "../src/wayland-os.h"
+#include "wayland-os.h"
static int fall_back;
#include <unistd.h>
#include "test-runner.h"
-#include "../src/wayland-util.h"
+#include "wayland-util.h"
TEST(empty)
{