X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-byte-order.c;h=4af765e890ef3733d94970db472dbc821a00fa79;hb=003ce655b7116d18c86a74c50391e54990346931;hp=1c5bf388e5580007d23a3903dab254827e592c73;hpb=6506f45c0818618e96deb858bbabdf2cc90eb2df;p=sliver-openvswitch.git diff --git a/tests/test-byte-order.c b/tests/test-byte-order.c index 1c5bf388e..4af765e89 100644 --- a/tests/test-byte-order.c +++ b/tests/test-byte-order.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2011 Nicira Networks. + * Copyright (c) 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,9 +18,10 @@ #include "byte-order.h" #include #include +#include "ovstest.h" -int -main(void) +static void +test_byte_order_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { #ifndef __CHECKER__ /* I picked some random numbers. */ @@ -48,6 +49,6 @@ main(void) #else /* __CHECKER__ */ /* Making sparse happy with this code makes it unreadable, so don't bother. */ #endif - - return 0; } + +OVSTEST_REGISTER("test-byte-order", test_byte_order_main);