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
a few more cosmetics
[simgrid.git]
/
teshsuite
/
mc
/
dwarf_expression
/
dwarf_expression.cpp
diff --git
a/teshsuite/mc/dwarf_expression/dwarf_expression.cpp
b/teshsuite/mc/dwarf_expression/dwarf_expression.cpp
index
fa42b88
..
fbe890e
100644
(file)
--- a/
teshsuite/mc/dwarf_expression/dwarf_expression.cpp
+++ b/
teshsuite/mc/dwarf_expression/dwarf_expression.cpp
@@
-12,13
+12,13
@@
#include <assert.h>
#include <stdlib.h>
#include <assert.h>
#include <stdlib.h>
-#include "mc/mc_private.h"
-#include "mc/mc_object_info.h"
+#include "
src/
mc/mc_private.h"
+#include "
src/
mc/mc_object_info.h"
-#include "mc/Process.hpp"
-#include "mc/Type.hpp"
-#include "mc/ObjectInformation.hpp"
-#include "mc/Variable.hpp"
+#include "
src/
mc/Process.hpp"
+#include "
src/
mc/Type.hpp"
+#include "
src/
mc/ObjectInformation.hpp"
+#include "
src/
mc/Variable.hpp"
static simgrid::mc::Process* process;
static simgrid::mc::Process* process;
@@
-39,7
+39,7
@@
uintptr_t eval_binary_operation(
simgrid::dwarf::execute(ops, 3, state, stack);
}
catch(std::runtime_error& e) {
simgrid::dwarf::execute(ops, 3, state, stack);
}
catch(std::runtime_error& e) {
-
assert(("Expression evaluation error", false)
);
+
fprintf(stderr,"Expression evaluation error"
);
}
assert(stack.size() == 1);
}
assert(stack.size() == 1);
@@
-60,7
+60,7
@@
void basic_test(simgrid::dwarf::ExpressionContext const& state) {
try {
ops[0].atom = DW_OP_drop;
simgrid::dwarf::execute(ops, 1, state, stack);
try {
ops[0].atom = DW_OP_drop;
simgrid::dwarf::execute(ops, 1, state, stack);
-
assert(("Exception expected", false)
);
+
fprintf(stderr,"Exception expected"
);
}
catch(simgrid::dwarf::evaluation_error& e) {}
}
catch(simgrid::dwarf::evaluation_error& e) {}
@@
-122,7
+122,7
@@
void basic_test(simgrid::dwarf::ExpressionContext const& state) {
}
catch(std::runtime_error& e) {
}
catch(std::runtime_error& e) {
-
assert(("Expression evaluation error", false)
);
+
fprintf(stderr,"Expression evaluation error"
);
}
}
}
}
@@
-145,12
+145,13
@@
void test_deref(simgrid::dwarf::ExpressionContext const& state) {
}
catch(std::runtime_error& e) {
}
catch(std::runtime_error& e) {
-
assert(("Expression evaluation error", false)
);
+
fprintf(stderr,"Expression evaluation error"
);
}
}
int main(int argc, char** argv) {
process = new simgrid::mc::Process(getpid(), -1);
}
}
int main(int argc, char** argv) {
process = new simgrid::mc::Process(getpid(), -1);
+ process->init();
simgrid::dwarf::ExpressionContext state;
state.address_space = (simgrid::mc::AddressSpace*) process;
simgrid::dwarf::ExpressionContext state;
state.address_space = (simgrid::mc::AddressSpace*) process;