-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle error in call trace function #70
Comments
Steps to implement this:
if (mTracingEnabled){
m_comp->emit_trace_line(mTracingInstrLowerBound, mTracingInstrUpperBound, mTracingLastInstr);
intErrorCheck("Trace line failed");
}
|
Thanks for the details! It seems like there are two branches that check whether tracing is already occurring before an early return: Lines 2636 to 2637 in 1cfad51
Are these error conditions (i.e. should they return Additionally, I'm still a little bit stumped on actually setting up and running the tests. I'll see if I can figure it out from the CI config. |
If tracing is already running, it should return 0. To setup the tests, you need to pass the 'BUILD_TESTS=ON' option to CMake when configuring. Alternatively, use the Dev Container if you're running VS Code with the Remote Containers extension. When you open the folder it'll set everything up for you. https://code.visualstudio.com/docs/remote/containers#_getting-started |
I should mention there are two test suites. The unit tests are in C++ using Catch2. That's the For tracing, there is a C++ unit test suite, which tests very simple scenarios. The The easiest way to get the Python tests running is to compile the project, then set |
Pyjion/src/pyjion/intrins.cpp
Lines 2044 to 2049 in 4995e76
This issue was generated by todo based on a
TODO
comment in 4995e76 when #68 was merged. cc @tonybaloney.The text was updated successfully, but these errors were encountered: