X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-json.c;h=c7c01c8e874ef7051b2c6dab665af45a52206ef7;hb=e1152397ae5307cd7a082361ab81fa73076368f5;hp=28b0edf19e0088a3d8a907aa9da942ef9bb8fb0e;hpb=5562d6f55e762ea6783a9f6032e85ccb2824773f;p=openvswitch diff --git a/tests/test-json.c b/tests/test-json.c index 28b0edf1..c7c01c8e 100644 --- a/tests/test-json.c +++ b/tests/test-json.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -152,5 +152,7 @@ main(int argc, char *argv[]) ok = print_and_free_json(json_from_stream(stream)); } + fclose(stream); + return !ok; }