X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fjsonrpc.at;h=b669a39224147e36e777a56555a1c65b9bc3da4e;hb=20d035b27559fe3823a09d72293c81281d3516c4;hp=d5ebf948af2be4a12356eed5e28da10ccd2bf374;hpb=f212909325be9bc7e296e1a32e2fc89694a0049f;p=openvswitch diff --git a/tests/jsonrpc.at b/tests/jsonrpc.at index d5ebf948..b669a392 100644 --- a/tests/jsonrpc.at +++ b/tests/jsonrpc.at @@ -1,4 +1,4 @@ -AT_BANNER([JSON-RPC]) +AT_BANNER([JSON-RPC - C]) AT_SETUP([JSON-RPC request and successful reply]) AT_CHECK([test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket]) @@ -7,7 +7,7 @@ AT_CHECK([kill -0 `cat pid`]) AT_CHECK( [[test-jsonrpc request unix:socket echo '[{"a": "b", "x": null}]']], [0], [[{"error":null,"id":0,"result":[{"a":"b","x":null}]} -]], [ignore], [test ! -e pid || kill `cat pid`]) +]], [], [test ! -e pid || kill `cat pid`]) AT_CHECK([kill `cat pid`]) AT_CLEANUP @@ -18,7 +18,7 @@ AT_CHECK([kill -0 `cat pid`]) AT_CHECK( [[test-jsonrpc request unix:socket bad-request '[]']], [0], [[{"error":{"error":"unknown method"},"id":0,"result":null} -]], [ignore], [test ! -e pid || kill `cat pid`]) +]], [], [test ! -e pid || kill `cat pid`]) AT_CHECK([kill `cat pid`]) AT_CLEANUP @@ -28,8 +28,8 @@ AT_CHECK([test -s pid]) # When a daemon dies it deletes its pidfile, so make a copy. AT_CHECK([cp pid pid2]) AT_CHECK([kill -0 `cat pid2`]) -OVS_CHECK_LCOV([[test-jsonrpc notify unix:socket shutdown '[]']], [0], [], - [ignore], [kill `cat pid2`]) +AT_CHECK([[test-jsonrpc notify unix:socket shutdown '[]']], [0], [], + [], [kill `cat pid2`]) AT_CHECK( [pid=`cat pid2` # First try a quick sleep, so that the test completes very quickly