X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-sflow.c;h=e992bb542689817bb4d06795c755235d435e27c8;hb=eadd16449c6e5292603cf009d29ab0e249979717;hp=cad4af5a031941c2c76f511a2889fe2a9573338e;hpb=01fed651097a90ef9365ce6c2f16da2970a5444e;p=sliver-openvswitch.git diff --git a/tests/test-sflow.c b/tests/test-sflow.c index cad4af5a0..e992bb542 100644 --- a/tests/test-sflow.c +++ b/tests/test-sflow.c @@ -35,6 +35,7 @@ #include "unixctl.h" #include "util.h" #include "vlog.h" +#include "ovstest.h" static void usage(void) NO_RETURN; static void parse_options(int argc, char *argv[]); @@ -484,8 +485,8 @@ print_sflow(struct ofpbuf *buf) } } -int -main(int argc, char *argv[]) +static void +test_sflow_main(int argc, char *argv[]) { struct unixctl_server *server; enum { MAX_RECV = 1500 }; @@ -545,8 +546,6 @@ main(int argc, char *argv[]) unixctl_server_wait(server); poll_block(); } - - return 0; } static void @@ -612,3 +611,5 @@ test_sflow_exit(struct unixctl_conn *conn, *exiting = true; unixctl_command_reply(conn, NULL); } + +OVSTEST_REGISTER("test-sflow", test_sflow_main);