[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9159 - in gnunet: m4 src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9159 - in gnunet: m4 src/util |
Date: |
Thu, 15 Oct 2009 06:45:20 -0600 |
Author: jilu
Date: 2009-10-15 06:45:20 -0600 (Thu, 15 Oct 2009)
New Revision: 9159
Modified:
gnunet/m4/libtool.m4
gnunet/m4/ltdl.m4
gnunet/src/util/test_bio.c
Log:
bio testcase harness
Modified: gnunet/m4/libtool.m4
===================================================================
--- gnunet/m4/libtool.m4 2009-10-15 09:14:37 UTC (rev 9158)
+++ gnunet/m4/libtool.m4 2009-10-15 12:45:20 UTC (rev 9159)
@@ -2485,18 +2485,6 @@
dynamic_linker='GNU/Linux ld.so'
;;
-netbsdelf*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix
${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='NetBSD ld.elf_so'
- ;;
-
netbsd*)
version_type=sunos
need_lib_prefix=no
@@ -3088,7 +3076,7 @@
lt_cv_deplibs_check_method=pass_all
;;
-netbsd* | netbsdelf*-gnu)
+netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
else
@@ -3769,7 +3757,7 @@
;;
esac
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
;;
*qnx* | *nto*)
# QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -4194,9 +4182,6 @@
cygwin* | mingw* | cegcc*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience |
$global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1
DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[
]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
;;
- linux* | k*bsd*-gnu)
- _LT_TAGVAR(link_all_deplibs, $1)=no
- ;;
*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience |
$global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
;;
@@ -4261,9 +4246,6 @@
openbsd*)
with_gnu_ld=no
;;
- linux* | k*bsd*-gnu)
- _LT_TAGVAR(link_all_deplibs, $1)=no
- ;;
esac
_LT_TAGVAR(ld_shlibs, $1)=yes
@@ -4446,7 +4428,7 @@
fi
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs
$linker_flags -o $lib'
wlarc=
@@ -4621,7 +4603,6 @@
if test "$aix_use_runtimelinking" = yes; then
shared_flag="$shared_flag "'${wl}-G'
fi
- _LT_TAGVAR(link_all_deplibs, $1)=no
else
# not using gcc
if test "$host_cpu" = ia64; then
@@ -4860,7 +4841,7 @@
_LT_TAGVAR(link_all_deplibs, $1)=yes
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out
else
Modified: gnunet/m4/ltdl.m4
===================================================================
--- gnunet/m4/ltdl.m4 2009-10-15 09:14:37 UTC (rev 9158)
+++ gnunet/m4/ltdl.m4 2009-10-15 12:45:20 UTC (rev 9159)
@@ -487,7 +487,7 @@
# at 6.2 and later dlopen does load deplibs.
lt_cv_sys_dlopen_deplibs=yes
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
lt_cv_sys_dlopen_deplibs=yes
;;
openbsd*)
Modified: gnunet/src/util/test_bio.c
===================================================================
--- gnunet/src/util/test_bio.c 2009-10-15 09:14:37 UTC (rev 9158)
+++ gnunet/src/util/test_bio.c 2009-10-15 12:45:20 UTC (rev 9159)
@@ -23,23 +23,40 @@
* @brief testcase for the buffered IO module
* @author
*/
+
+
#include "platform.h"
#include "gnunet_common.h"
#include "gnunet_disk_lib.h"
-#include "gnunet_scheduler_lib.h"
+#include "gnunet_bio_lib.h"
+int check(){
+ int suc;
+ char* fileName = GNUNET_DISK_mktemp ("gnunet_bio");
+ struct GNUNET_BIO_ReadHandle *fileR;
+ struct GNUNET_BIO_WriteHandle *fileW;
+ char *msg;
+ fileR = GNUNET_BIO_read_open (fileName);
+ GNUNET_BIO_read_close(fileR,&msg);
+ fileW = GNUNET_BIO_write_open(fileName);
+ if (GNUNET_OK == GNUNET_BIO_write_close(fileW))
+ suc = 0;
+ else
+ suc = 1;
+ return suc;
+
+
+}
+
+
+
int
main (int argc, char *argv[])
{
- unsigned int failureCount = 0;
- GNUNET_log_setup ("test-bio", "WARNING", NULL);
- if (failureCount != 0)
- {
- fprintf (stderr, "\n%u TESTS FAILED!\n", failureCount);
- return -1;
- }
- return 0;
+ int ch = check();
+ return ch;
+
} /* end of main */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9159 - in gnunet: m4 src/util,
gnunet <=