X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-list.c;h=5cba959d23ed5943b70aaa71fcf03f917f51d9df;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=b4ddd02e16df1aa8a14ec04843e43f14ed754ddb;hpb=dc1539ae02fcb9c22b98d587b790ce8bc3a68774;p=sliver-openvswitch.git diff --git a/tests/test-list.c b/tests/test-list.c index b4ddd02e1..5cba959d2 100644 --- a/tests/test-list.c +++ b/tests/test-list.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011, 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. @@ -20,6 +20,7 @@ #include #include "list.h" #include +#include "ovstest.h" #undef NDEBUG #include @@ -166,12 +167,12 @@ run_test(void (*function)(void)) printf("."); } -int -main(void) +static void +test_list_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { run_test(test_list_construction); run_test(test_list_for_each_safe); printf("\n"); - return 0; } +OVSTEST_REGISTER("test-list", test_list_main);