- gras_msg_rpccall(toserver, 6000.0,
- gras_msgtype_by_name("raise exception"), NULL, NULL);
- } CATCH(e) {
- gotit = 1;
- xbt_assert2(e.category == unknown_error,
- "Got wrong category: %d (instead of %d)",
- e.category,unknown_error);
- xbt_assert1(e.value == 42, "Got wrong value: %d (!=42)", e.value);
- xbt_assert1(!strncmp(e.msg,"Some error we will catch on client side",
- strlen("Some error we will catch on client side")),
- "Got wrong message: %s", e.msg);
- INFO0("Got the expected exception when calling the exception raising RPC");
+ gras_msg_rpccall(toserver, 6000.0, "raise exception", NULL, NULL);
+ }
+ CATCH(e) {
+ gotit = 1;
+ xbt_assert(e.category == unknown_error,
+ "Got wrong category: %d (instead of %d)",
+ e.category, unknown_error);
+ xbt_assert(e.value == 42, "Got wrong value: %d (!=42)", e.value);
+ xbt_assert(!strncmp(e.msg, exception_msg, strlen(exception_msg)),
+ "Got wrong message: %s", e.msg);
+ XBT_INFO
+ ("Got the expected exception when calling the exception raising RPC");