Phil Oleson wrote:
<snip>
or libevent.so.2 ?  Also 'make verify' is having problems loading the
.lib/libevent-1.2.so.1 when I run it.  This is on a FreeBSD 5.4+ box
and a FreeBSD 6.0+ box.

    -Phil.

I took the time to figure out why the tests were failing on my Freebsd
boxes.  It is the export statement after the unset of the EVENT_NOXXX
commands.  The variables "are unset and unexported" via the unset
command, but the following command exports the EVENT_NOXXX variable back
into the environment with an empty value.  libevent is seeing that as a
valid disable option, thus all kernel notification methods are disabled
on each test. Though I guess sh could act different on other platforms??

        -Phil.

here is a patch:
--------------------------
# cvs diff -u test.sh
Index: test.sh
===================================================================
RCS file: /cvsroot/levent/libevent/test/test.sh,v
retrieving revision 1.4
diff -u -r1.4 test.sh
--- test.sh     2 Sep 2005 05:34:01 -0000       1.4
+++ test.sh     27 Jan 2006 07:21:06 -0000
@@ -18,34 +18,34 @@
                return
        fi

-echo -n " test-eof: "
-if ./test-eof >/dev/null ;
-then
-       echo OKAY ;
-else
-       echo FAILED ;
-fi
-echo -n " test-weof: "
-if ./test-weof >/dev/null ;
-then
-       echo OKAY ;
-else
-       echo FAILED ;
-fi
-echo -n " test-time: "
-if ./test-time >/dev/null ;
-then
-       echo OKAY ;
-else
-       echo FAILED ;
-fi
-echo -n " regress: "
-if ./regress >/dev/null ;
-then
-       echo OKAY ;
-else
-       echo FAILED ;
-fi
+       echo -n " test-eof: "
+       if ./test-eof >/dev/null ;
+       then
+               echo OKAY ;
+       else
+               echo FAILED ;
+       fi
+       echo -n " test-weof: "
+       if ./test-weof >/dev/null ;
+       then
+               echo OKAY ;
+       else
+               echo FAILED ;
+       fi
+       echo -n " test-time: "
+       if ./test-time >/dev/null ;
+       then
+               echo OKAY ;
+       else
+               echo FAILED ;
+       fi
+       echo -n " regress: "
+       if ./regress >/dev/null ;
+       then
+               echo OKAY ;
+       else
+               echo FAILED ;
+       fi
 }

 echo "Running tests:"
@@ -53,37 +53,31 @@
 # Need to do this by hand?
 setup
 unset EVENT_NOKQUEUE
-export EVENT_NOKQUEUE
 echo "KQUEUE"
 test

 setup
 unset EVENT_NODEVPOLL
-export EVENT_NODEVPOLL
 echo "DEVPOLL"
 test

 setup
 unset EVENT_NOPOLL
-export EVENT_NOPOLL
 echo "POLL"
 test

 setup
 unset EVENT_NOSELECT
-export EVENT_NOSELECT
 echo "SELECT"
 test

 setup
 unset EVENT_NORTSIG
-export EVENT_NORTSIG
 echo "RTSIG"
 test

 setup
 unset EVENT_NOEPOLL
-export EVENT_NOEPOLL
 echo "EPOLL"
 test

--------------------------
_______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to