X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-random.c;h=39bd85a27b770acb2209c0d8060a72c37a9ca6f0;hb=eadd16449c6e5292603cf009d29ab0e249979717;hp=7b1c2ac7554bed75df81ecd820698104e44076ed;hpb=01fed651097a90ef9365ce6c2f16da2970a5444e;p=sliver-openvswitch.git diff --git a/tests/test-random.c b/tests/test-random.c index 7b1c2ac75..39bd85a27 100644 --- a/tests/test-random.c +++ b/tests/test-random.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 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. @@ -17,12 +17,12 @@ #include #include "random.h" - +#include "ovstest.h" #include #include -int -main(void) +static void +test_random_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { enum { N_ROUNDS = 10000 }; unsigned long long int total; @@ -74,6 +74,6 @@ main(void) printf("\n"); } printf("(expected values are %d)\n", N_ROUNDS / 16); - - return 0; } + +OVSTEST_REGISTER("test-random", test_random_main);