A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove all xbt_assert.*(0,FALSE or NULL for xbt_die
[simgrid.git]
/
examples
/
msg
/
masterslave
/
masterslave_failure.c
diff --git
a/examples/msg/masterslave/masterslave_failure.c
b/examples/msg/masterslave/masterslave_failure.c
index
901d08c
..
604af18
100644
(file)
--- a/
examples/msg/masterslave/masterslave_failure.c
+++ b/
examples/msg/masterslave/masterslave_failure.c
@@
-96,7
+96,7
@@
int master(int argc, char *argv[])
MSG_task_destroy(task);
} else {
XBT_INFO("Hey ?! What's up ? ");
MSG_task_destroy(task);
} else {
XBT_INFO("Hey ?! What's up ? ");
- xbt_
assert0(0,
"Unexpected behavior");
+ xbt_
die(
"Unexpected behavior");
}
}
}
}
@@
-124,8
+124,8
@@
int master(int argc, char *argv[])
MSG_task_destroy(task);
} else {
XBT_INFO("Hey ?! What's up ? ");
MSG_task_destroy(task);
} else {
XBT_INFO("Hey ?! What's up ? ");
- xbt_
assert2(0,
"Unexpected behavior with '%s': %d", slaves[i]->name,
- a);
+ xbt_
die(bprintf(
"Unexpected behavior with '%s': %d", slaves[i]->name,
+ a)
)
;
}
}
}
}
@@
-166,7
+166,7
@@
int slave(int argc, char *argv[])
return 0;
} else {
XBT_INFO("Hey ?! What's up ? ");
return 0;
} else {
XBT_INFO("Hey ?! What's up ? ");
- xbt_
assert0(0,
"Unexpected behavior");
+ xbt_
die(
"Unexpected behavior");
}
} else if (a == MSG_HOST_FAILURE) {
XBT_INFO
}
} else if (a == MSG_HOST_FAILURE) {
XBT_INFO
@@
-176,7
+176,7
@@
int slave(int argc, char *argv[])
XBT_INFO("Mmh. Something went wrong. Nevermind. Let's keep going!");
} else {
XBT_INFO("Hey ?! What's up ? ");
XBT_INFO("Mmh. Something went wrong. Nevermind. Let's keep going!");
} else {
XBT_INFO("Hey ?! What's up ? ");
- xbt_
assert0(0,
"Unexpected behavior");
+ xbt_
die(
"Unexpected behavior");
}
}
XBT_INFO("I'm done. See you!");
}
}
XBT_INFO("I'm done. See you!");