X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-heap.c;h=3e0940ca6ed0836eb8a3840e7a79392846143bf5;hb=a8513c7db801f7b87d241ca6c9a1eec832668983;hp=ccb14846ad2ba7ba8d9c11ce9c53b6876104e146;hpb=3932d8db7556d2fe4088535443e172a461cc6e9e;p=sliver-openvswitch.git diff --git a/tests/test-heap.c b/tests/test-heap.c index ccb14846a..3e0940ca6 100644 --- a/tests/test-heap.c +++ b/tests/test-heap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Nicira, Inc. + * Copyright (c) 2012, 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. @@ -24,6 +24,7 @@ #include "command-line.h" #include "random.h" #include "util.h" +#include "ovstest.h" #undef NDEBUG #include @@ -473,14 +474,15 @@ static const struct command commands[] = { test_heap_insert_delete_same_order_with_dups, }, { "raw-insert", 0, 0, test_heap_raw_insert, }, { "raw-delete", 0, 0, test_heap_raw_delete, }, + { NULL, 0, 0, NULL, }, }; -int -main(int argc, char *argv[]) +static void +test_heap_main(int argc, char *argv[]) { set_program_name(argv[0]); run_command(argc - 1, argv + 1, commands); - - return 0; } + +OVSTEST_REGISTER("test-heap", test_heap_main, commands);