[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8446 - flightrecorder/src/libflightrecorder
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8446 - flightrecorder/src/libflightrecorder |
Date: |
Sat, 2 May 2009 09:24:59 -0600 |
Author: durner
Date: 2009-05-02 09:24:59 -0600 (Sat, 02 May 2009)
New Revision: 8446
Added:
flightrecorder/src/libflightrecorder/test_init.c
Modified:
flightrecorder/src/libflightrecorder/Makefile.am
Log:
test init
Modified: flightrecorder/src/libflightrecorder/Makefile.am
===================================================================
--- flightrecorder/src/libflightrecorder/Makefile.am 2009-05-02 15:24:30 UTC
(rev 8445)
+++ flightrecorder/src/libflightrecorder/Makefile.am 2009-05-02 15:24:59 UTC
(rev 8446)
@@ -1,6 +1,8 @@
INCLUDES = -I$(top_srcdir)/src/include
lib_LTLIBRARIES = libflightrecorder.la
+TESTS = test_init
+check_PROGRAMS = $(TESTS)
pkgdata_DATA = advice.acc advice.include
EXTRA_DIST = \
@@ -11,6 +13,9 @@
WINFLAGS = -Wl,--export-all-symbols
endif
+test_init_SOURCES = test_init.c
+test_init_LDADD = $(top_builddir)/src/libflightrecorder/libflightrecorder.la
+
libflightrecorder_la_LDFLAGS = \
-export-dynamic -Wl,--no-undefined $(WINFLAGS) \
-version-info 1:0:0
Added: flightrecorder/src/libflightrecorder/test_init.c
===================================================================
--- flightrecorder/src/libflightrecorder/test_init.c
(rev 0)
+++ flightrecorder/src/libflightrecorder/test_init.c 2009-05-02 15:24:59 UTC
(rev 8446)
@@ -0,0 +1,42 @@
+/*
+ libflightrecorder - Client library for flightrecorder, a recorder for
+ runtime information gathered by AOP advices or other process internal
+ checks
+
+ Copyright (C) 2009 Nils Durner
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
+*/
+
+/**
+ * @brief Initialization test
+ * @file src/libflightrecorder/test_init.c
+ * @author Nils Durner
+ */
+
+#include "flightrecorder.h"
+
+int main()
+{
+ if (!fr_init())
+ {
+ printf("fr_init() failed\n");
+ return 1;
+ }
+
+ fr_uninit();
+
+ return 0;
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8446 - flightrecorder/src/libflightrecorder,
gnunet <=