]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3021] unity_fixture.c needs pragma weak
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 26 Sep 2016 06:24:48 +0000 (08:24 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 26 Sep 2016 06:24:48 +0000 (08:24 +0200)
 - add library implementation of empty setUp()/tearDown()

bk: 57e8bf30AiR9G8_rmiGPq4UnVX4JUw

sntp/unity/Makefile.am
sntp/unity/ulib_setup.c [new file with mode: 0644]
sntp/unity/ulib_teardown.c [new file with mode: 0644]

index 31029ffcb5a62830628650a4091c12c75aa49752..71092a0d80568c8eafee5e8ab16a8666c1dfb812 100644 (file)
@@ -12,6 +12,8 @@ libunity_a_CFLAGS =                   \
 libunity_a_SOURCES =                           \
        ../libpkgver/colcomp.c                  \
        unity.c                                 \
+       ulib_setup.c                            \
+       ulib_teardown.c                         \
        unity.h                                 \
        unity_config.h                          \
        unity_internals.h                       \
diff --git a/sntp/unity/ulib_setup.c b/sntp/unity/ulib_setup.c
new file mode 100644 (file)
index 0000000..41a3b38
--- /dev/null
@@ -0,0 +1,14 @@
+/* default / lib implementation of 'setUp()'
+ *
+ * SOLARIS does not support weak symbols -- need a real lib
+ * implemetation here.
+ */
+
+extern void setUp(void);
+
+void setUp(void)
+{
+       /* empty on purpose */
+}
+
+/* -*- that's all folks! -*- */
diff --git a/sntp/unity/ulib_teardown.c b/sntp/unity/ulib_teardown.c
new file mode 100644 (file)
index 0000000..a36cdf9
--- /dev/null
@@ -0,0 +1,13 @@
+/* default / lib implementation of 'tearDown()'
+ *
+ * SOLARIS does not support weak symbols -- need a real lib
+ * implemetation here.
+ */
+
+extern void tearDown(void);
+
+void tearDown(void)
+{
+       /* empty on purpose */
+}
+