Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: unittest/BitcodeMunge.cpp

Issue 1173353003: Unittest fixes. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Optional runTest() ParseError parameter. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « unittest/BitcodeMunge.h ('k') | unittest/IceParseInstsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittest/BitcodeMunge.cpp
diff --git a/unittest/BitcodeMunge.cpp b/unittest/BitcodeMunge.cpp
index abd9a3496dea76aa19c569b39f7464cbf0135243..e20145eac9c5a7403c2b96e8dd47e5319c8b142d 100644
--- a/unittest/BitcodeMunge.cpp
+++ b/unittest/BitcodeMunge.cpp
@@ -19,11 +19,6 @@
namespace IceTest {
-void IceTest::SubzeroBitcodeMunger::resetFlags() {
- Ice::ClFlags::resetClFlags(Flags);
- resetMungeFlags();
-}
-
void IceTest::SubzeroBitcodeMunger::resetMungeFlags() {
Flags.setAllowErrorRecovery(true);
Flags.setGenerateUnitTestMessages(true);
@@ -34,12 +29,14 @@ void IceTest::SubzeroBitcodeMunger::resetMungeFlags() {
}
bool IceTest::SubzeroBitcodeMunger::runTest(const uint64_t Munges[],
- size_t MungeSize) {
+ size_t MungeSize,
+ bool ParseError) {
const bool AddHeader = true;
setupTest(Munges, MungeSize, AddHeader);
Ice::GlobalContext Ctx(DumpStream, DumpStream, DumpStream, nullptr, Flags);
Ice::PNaClTranslator Translator(&Ctx);
const char *BufferName = "Test";
+ Flags.setDisableTranslation(ParseError);
Translator.translateBuffer(BufferName, MungedInput.get());
cleanupTest();
« no previous file with comments | « unittest/BitcodeMunge.h ('k') | unittest/IceParseInstsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698