X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-bundle.c;h=9a658396797fcbe246c596a21ff244bff6908e18;hb=eadd16449c6e5292603cf009d29ab0e249979717;hp=c7331eb3aa7cf2459840aa50e82166ca7da1d08a;hpb=01fed651097a90ef9365ce6c2f16da2970a5444e;p=sliver-openvswitch.git diff --git a/tests/test-bundle.c b/tests/test-bundle.c index c7331eb3a..9a6583967 100644 --- a/tests/test-bundle.c +++ b/tests/test-bundle.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2011, 2012, 2013 Nicira, Inc. +/* Copyright (c) 2011, 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. @@ -25,6 +25,7 @@ #include "ofpbuf.h" #include "util.h" +#include "ovstest.h" #define N_FLOWS 50000 #define MAX_SLAVES 8 /* Maximum supported by this test framework. */ @@ -104,8 +105,8 @@ mask_str(uint8_t mask, size_t n_bits) return str; } -int -main(int argc, char *argv[]) +static void +test_bundle_main(int argc, char *argv[]) { bool ok = true; struct ofpact_bundle *bundle; @@ -264,5 +265,7 @@ main(int argc, char *argv[]) free(bundle); free(flows); - return ok ? 0 : 1; + exit(ok ? 0 : 1); } + +OVSTEST_REGISTER("test-bundle", test_bundle_main);