X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-util.c;h=ffd4dcefd8ef0110f1131518164fd1d97883eb86;hb=e379e4d167e31d1cd5f7b86fff091a2e09ff6e45;hp=363abb17991d6611e1aabeb1de53472a802135cf;hpb=cde1c287b1bbbc128c3378f194a338399438ce51;p=sliver-openvswitch.git diff --git a/tests/test-util.c b/tests/test-util.c index 363abb179..ffd4dcefd 100644 --- a/tests/test-util.c +++ b/tests/test-util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, 2013 Nicira, Inc. + * Copyright (c) 2011, 2012, 2013, 2014 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ #include "random.h" #include "util.h" #include "vlog.h" +#include "ovstest.h" #undef NDEBUG #include @@ -1080,11 +1081,12 @@ parse_options(int argc, char *argv[]) free(short_options); } -int -main(int argc, char *argv[]) +static void +test_util_main(int argc, char *argv[]) { set_program_name(argv[0]); parse_options(argc, argv); run_command(argc - optind, argv + optind, commands); - return 0; } + +OVSTEST_REGISTER("test-util", test_util_main);