summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-06-16 14:51:27 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-06-16 14:51:27 (GMT)
commitfa6b4f074d4be04d913d8b7dc062920341c34ecb (patch)
tree83ae475b184a3b1bccca2a69addcefb6c12d924e /test/src
parented6aee05e2843be65c4ab445d79e70dc8dacc07b (diff)
downloaduscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.zip
uscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.tar.gz
uscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.tar.bz2
Fixed issue86 and some more bug fixes
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-gen-c.cpp9
-rw-r--r--test/src/test-stress.cpp7
2 files changed, 8 insertions, 8 deletions
diff --git a/test/src/test-gen-c.cpp b/test/src/test-gen-c.cpp
index 7870578..48c99e8 100644
--- a/test/src/test-gen-c.cpp
+++ b/test/src/test-gen-c.cpp
@@ -17,7 +17,8 @@
#endif
#ifndef AUTOINCLUDE_TEST
-#include "test-c-machine.scxml.c"
+//#include "test-c-machine.scxml.c"
+#include "/Users/sradomski/Documents/TK/Code/uscxml/build/cli/test/gen/c/ecma/test329.scxml.machine.c"
#endif
#include "uscxml/util/URL.h"
@@ -127,7 +128,7 @@ public:
} else if (param->location != NULL) {
identifier = param->location;
}
- invokeData[identifier] = parentMachine->dataModel.getAsData(param->expr);
+ invokeData[identifier] = parentMachine->dataModel.evalAsData(param->expr);
param++;
}
}
@@ -146,7 +147,7 @@ public:
break;
std::string identifier = std::string(aPtr, cPtr - aPtr);
- invokeData[identifier] = parentMachine->dataModel.getAsData(identifier);
+ invokeData[identifier] = parentMachine->dataModel.evalAsData(identifier);
}
}
}
@@ -555,7 +556,7 @@ public:
// Data d = USER_DATA(ctx)->dataModel.getStringAsData(expr);
if (assign->expr != NULL) {
USER_DATA(ctx)->dataModel.assign(key,
- USER_DATA(ctx)->dataModel.evalAsData(assign->expr));
+ USER_DATA(ctx)->dataModel.getAsData(assign->expr));
} else if (assign->content != NULL) {
Data d = Data(assign->content, Data::INTERPRETED);
USER_DATA(ctx)->dataModel.assign(key, d);
diff --git a/test/src/test-stress.cpp b/test/src/test-stress.cpp
index 588e0f7..8bd2e4a 100644
--- a/test/src/test-stress.cpp
+++ b/test/src/test-stress.cpp
@@ -97,10 +97,9 @@ int main(int argc, char** argv) {
entryIter++;
// forever
- if (entryIter == entries.end()) {
- entryIter = entries.begin();
- std::this_thread::sleep_for(std::chrono::seconds(10));
- }
+// if (entryIter == entries.end()) {
+// entryIter = entries.begin();
+// }
}
delete watcher;