X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-csum.c;h=c74133a7f320fad2cc02e48427c8fa357888dea9;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=ef126de742bd1f19add68eacbe4d301da6636fa1;hpb=97025b23a71ace7c1e640e37891e7d11a87e83fa;p=sliver-openvswitch.git diff --git a/tests/test-csum.c b/tests/test-csum.c index ef126de74..c74133a7f 100644 --- a/tests/test-csum.c +++ b/tests/test-csum.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011 Nicira, Inc. + * Copyright (c) 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. @@ -25,6 +25,7 @@ #include "random.h" #include "unaligned.h" #include "util.h" +#include "ovstest.h" #undef NDEBUG #include @@ -175,8 +176,9 @@ test_crc32c(void) mark('#'); } -int -main(void) + +static void +test_csum_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { const struct test_case *tc; int i; @@ -280,6 +282,6 @@ main(void) mark('#'); putchar('\n'); - - return 0; } + +OVSTEST_REGISTER("test-csum", test_csum_main);