X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-packets.c;h=a9fafd5b827b6b2002194ccca7f1048f6b4c49f4;hb=c5cf10598f8c9f4428291e9df3ecd72a05fb1ccf;hp=dda4797f56288cdff8fa75556bc6c92ebc6ab5d4;hpb=d31f1109f10e5ffb9bf266306b913ebf23781666;p=sliver-openvswitch.git diff --git a/tests/test-packets.c b/tests/test-packets.c index dda4797f5..a9fafd5b8 100644 --- a/tests/test-packets.c +++ b/tests/test-packets.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira Networks. + * Copyright (c) 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. @@ -19,6 +19,7 @@ #include #include #include +#include "ovstest.h" #undef NDEBUG #include @@ -152,13 +153,13 @@ test_ipv6_masking(void) assert(ipv6_count_cidr_bits(&dest) == 128); } -int -main(void) +static void +test_packets_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { test_ipv4_cidr(); test_ipv6_static_masks(); test_ipv6_cidr(); test_ipv6_masking(); - - return 0; } + +OVSTEST_REGISTER("test-packets", test_packets_main);