X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-multipath.c;h=50747d9b6bba4ba5b1c60e441b02e4cb4c4658f1;hb=003ce655b7116d18c86a74c50391e54990346931;hp=bf879c7a064ba1fb24b95ab7f16cbd1d6c0fc339;hpb=94639963bf275a41e42277116205da0e9b457580;p=sliver-openvswitch.git diff --git a/tests/test-multipath.c b/tests/test-multipath.c index bf879c7a0..50747d9b6 100644 --- a/tests/test-multipath.c +++ b/tests/test-multipath.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2012, 2013 Nicira, Inc. + * Copyright (c) 2010, 2012, 2013, 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. @@ -27,9 +27,10 @@ #include "flow.h" #include "ofp-actions.h" #include "util.h" +#include "ovstest.h" -int -main(int argc, char *argv[]) +static void +test_multipath_main(int argc, char *argv[]) { enum { MP_MAX_LINKS = 63 }; struct ofpact_multipath mp; @@ -128,9 +129,11 @@ main(int argc, char *argv[]) break; default: - NOT_REACHED(); + OVS_NOT_REACHED(); } } - return ok ? 0 : 1; + exit(ok ? 0 : 1); } + +OVSTEST_REGISTER("test-multipath", test_multipath_main);