1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
commit 39baf09b58d626d46be3da79a3ab4f41deb37426
Author: Flavio Cruz <flaviocruz@gmail.com>
Date: Wed Jul 3 21:38:43 2024 +0100
Make the MiG test suite compatible with GCC 14.
We need to expose the function declarations in mig_support.h.
Also fix test setup to work well in cases the build directory is not
inside the source directory.
Message-ID: <jjbpmhtxy4nybcmhlzueeenyv5taj4zygmsx6w336ggzcbr5yx@tnkp2ycfkf3t>
diff --git a/tests/bad/Makefile.am b/tests/bad/Makefile.am
index 2e1bf37..3af60eb 100644
--- a/tests/bad/Makefile.am
+++ b/tests/bad/Makefile.am
@@ -18,6 +18,6 @@
TESTS = invalid_subsystem.defs no_request_port.defs no_subsystem.defs
EXTRA_DIST = $(TESTS) run_bad_test.sh
-DEFS_LOG_COMPILER = sh ./$(srcdir)/run_bad_test.sh
+DEFS_LOG_COMPILER = sh $(srcdir)/run_bad_test.sh
include $(srcdir)/../Makeconf.am
diff --git a/tests/generate-only/Makefile.am b/tests/generate-only/Makefile.am
index d936d8a..d6294fa 100644
--- a/tests/generate-only/Makefile.am
+++ b/tests/generate-only/Makefile.am
@@ -18,6 +18,6 @@
TESTS = subsystem-kernel.defs subsystem-user.defs
EXTRA_DIST = $(TESTS) run_generate_only_test.sh
-DEFS_LOG_COMPILER = sh ./$(srcdir)/run_generate_only_test.sh
+DEFS_LOG_COMPILER = sh $(srcdir)/run_generate_only_test.sh
include $(srcdir)/../Makeconf.am
diff --git a/tests/good/Makefile.am b/tests/good/Makefile.am
index c5d8d7e..f01ccea 100644
--- a/tests/good/Makefile.am
+++ b/tests/good/Makefile.am
@@ -19,6 +19,6 @@
TESTS = case.defs complex-types.defs directions.defs import.defs \
routine.defs types.defs waittime.defs
EXTRA_DIST = $(TESTS) run_good_test.sh
-DEFS_LOG_COMPILER = sh ./$(srcdir)/run_good_test.sh
+DEFS_LOG_COMPILER = sh $(srcdir)/run_good_test.sh
include $(srcdir)/../Makeconf.am
diff --git a/tests/includes/mach/mig_support.h b/tests/includes/mach/mig_support.h
index e725a63..78c1f03 100644
--- a/tests/includes/mach/mig_support.h
+++ b/tests/includes/mach/mig_support.h
@@ -1 +1,17 @@
-/* This file allows the testsuite to compile under Linux. */
+/* This file allows the testsuite to compile under Linux
+ * which doesn't have mach/mig_support.h */
+
+#ifndef _MACH_MIG_SUPPORT_H
+
+#define _MACH_MIG_SUPPORT_H 1
+
+#include <mach/std_types.h>
+#include <string.h>
+
+mach_port_t mig_get_reply_port (void);
+void mig_dealloc_reply_port (mach_port_t);
+void mig_put_reply_port (mach_port_t);
+void mig_allocate (vm_address_t *__addr_p, vm_size_t __size);
+void mig_deallocate (vm_address_t __addr, vm_size_t __size);
+
+#endif
|