Skip to content
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

Fix regression reported by Michael Esser and Andrew Watson #133

Merged
merged 1 commit into from
Jul 4, 2014

Conversation

delcypher
Copy link
Contributor

(independently).

In our recently switch to llvm::raw_ostream (and friends) (I think this
is d934d98) we forgot to flush the
llvm::raw_string_ostream to the underlying string used for error report
files (e.g. test000001.overshift.err) so we would end up writing an
empty string to error report files.

Also added a test case to catch this.

@ccadar
Copy link
Contributor

ccadar commented Jul 4, 2014

Looks good to me. I have a more compact solution, but I'm not sure it's worth bothering:

- interpreterHandler->processTestCase(state, MsgString.c_str(), suffix);
+interpreterHandler->processTestCase(state, msg.str().c_str(), suffix);

(msg.str() does a flush first)

@delcypher
Copy link
Contributor Author

@ccadar That is simplier. I've added an extra commit to do this

Assuming you're happy with this please commit this. Or if you'd like me to commit please give me commit access again (I removed my commit access some time ago).

@ccadar
Copy link
Contributor

ccadar commented Jul 4, 2014

Looks ok, but you forgot to remove the flush(). Can you also collapse the three commits to Executor.cpp into a single one? Thanks.

(independently).

In our recently switch to llvm::raw_ostream (and friends) (I think this
is d934d98) we forgot to flush the
llvm::raw_string_ostream to the underlying string used for error report
files (e.g. test000001.overshift.err) so we would end up writing an
empty string to error report files.

Also added a test case to catch this.
@delcypher
Copy link
Contributor Author

Done

ccadar added a commit that referenced this pull request Jul 4, 2014
Fix regression reported by Michael Esser and Andrew Watson
@ccadar ccadar merged commit 75f71cf into klee:master Jul 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants