X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=tests%2Ftest-byte-order.c;h=2b8edf35cfefd0f0a868fc90e4236fa00a80ca4c;hb=7daedce44a96edefd5afa683475eb482070e937a;hp=1c5bf388e5580007d23a3903dab254827e592c73;hpb=b2fda3effc787f265b5ad5dfa967ac00627bd075;p=cascardo%2Fovs.git diff --git a/tests/test-byte-order.c b/tests/test-byte-order.c index 1c5bf388e..2b8edf35c 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. @@ -15,12 +15,14 @@ */ #include +#undef NDEBUG #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 +50,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);