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
Uncomment debug message.
[simgrid.git]
/
teshsuite
/
mc
/
random-bug
/
random-bug.cpp
diff --git
a/teshsuite/mc/random-bug/random-bug.cpp
b/teshsuite/mc/random-bug/random-bug.cpp
index
167f621
..
ca5b2fe
100644
(file)
--- a/
teshsuite/mc/random-bug/random-bug.cpp
+++ b/
teshsuite/mc/random-bug/random-bug.cpp
@@
-19,6
+19,7
@@
static void app()
{
int x = MC_random(0, 5);
int y = MC_random(0, 5);
+ XBT_DEBUG("got %d %d", x, y);
if (behavior == Behavior::ASSERT) {
MC_assert(x != 3 || y != 4);
@@
-34,7
+35,7
@@
static void app()
int main(int argc, char* argv[])
{
simgrid::s4u::Engine e(&argc, argv);
- xbt_assert(argc == 3, "Usage: random-bug
raise|assert
<platformfile>");
+ xbt_assert(argc == 3, "Usage: random-bug
abort|assert|printf
<platformfile>");
if (strcmp(argv[1], "abort") == 0) {
XBT_INFO("Behavior: abort");
behavior = Behavior::ABORT;