X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-file_name.c;h=9d2aca1740a03b6ee210b7976fa8a043d2f9cd0a;hb=6d308b28c023e864925b1a6775b3b91d215e89bf;hp=3d4eaf1d424cf057b694245d8b270f590a05511c;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=sliver-openvswitch.git diff --git a/tests/test-file_name.c b/tests/test-file_name.c index 3d4eaf1d4..9d2aca174 100644 --- a/tests/test-file_name.c +++ b/tests/test-file_name.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira, Inc. + * Copyright (c) 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,9 +17,10 @@ #include #include "util.h" #include +#include "ovstest.h" -int -main(int argc, char *argv[]) +static void +test_filename_main(int argc, char *argv[]) { int i; @@ -34,6 +35,6 @@ main(int argc, char *argv[]) puts(base); free(base); } - - return 0; } + +OVSTEST_REGISTER("test-file_name", test_filename_main);