Blob Blame History Raw
diff -Naur a/src/tests/info_builder_test.cpp b/src/tests/info_builder_test.cpp
--- a/src/tests/info_builder_test.cpp	2022-05-22 14:02:33.000000000 -0700
+++ b/src/tests/info_builder_test.cpp	2022-07-01 10:14:39.023221117 -0700
@@ -24,9 +24,6 @@
 
 private slots:
     void general();
-	void compareBinaries_alienar()	{ compareBinaries(":/resources/listxml_alienar.xml"); }
-	void compareBinaries_coco()		{ compareBinaries(":/resources/listxml_coco.xml"); }
-	void compareBinaries_fake()		{ compareBinaries(":/resources/listxml_fake.xml"); }
 	void stringTable();
 	void singleString1()			{ singleString<const char8_t *>(u8""); }
 	void singleString2()			{ singleString<const char8_t *>(u8"A"); }
@@ -53,7 +50,6 @@
 	void xmlAttributeParsing();
 
 private:
-	void compareBinaries(const QString &fileName);
 	template<class T> void singleString(T s);
 };
 
@@ -130,64 +126,6 @@
 }
 
 
-//-------------------------------------------------
-//  compareBinaries - perform a binary comparison
-//	to validate that byte for byte, the info DB we
-//	build is identical to whats there
-// 
-//	a caveat - info DB is (for now) endian sensitive,
-//  but in practice all of the platforms we care
-//	about are little endian
-//-------------------------------------------------
-
-void info::database_builder::Test::compareBinaries(const QString &fileName)
-{
-	const bool dumpBinaries = false;
-
-	// get the binaries
-	QByteArray byteArray = buildInfoDatabase(fileName);
-	QVERIFY(byteArray.size() > 0);
-
-	// get the binary file name
-	QString binFileName = fileName;
-	binFileName.replace(".xml", ".bin");
-	QVERIFY(binFileName != fileName);
-
-	// dump the binaries if appropriate
-	if (dumpBinaries)
-	{
-		int lastSlashPos = binFileName.lastIndexOf('/');
-		QVERIFY(lastSlashPos >= 0);
-		QString dumpBinFileName = binFileName.right(binFileName.size() - lastSlashPos - 1);
-
-		QFile dumpFile(dumpBinFileName);
-		QVERIFY(dumpFile.open(QIODevice::WriteOnly));
-		dumpFile.write(byteArray);
-	}
-
-	// read the binary file
-	QFile binFile(binFileName);
-	QVERIFY(binFile.open(QIODevice::ReadOnly));
-	QByteArray binByteArray = binFile.readAll();
-	binFile.close();
-
-	// the moment of truth - is the binary that we built byte-for-byte identical to what is there?
-	QVERIFY(byteArray.size() == binByteArray.size());
-	for (int i = 0; i < byteArray.size(); i++)
-	{
-		if (byteArray[i] != binByteArray[i])
-		{
-			qWarning("Difference at index #%d (0x%02X vs 0x%02X)",
-				(int)i,
-				(unsigned)(std::uint8_t)byteArray[i],
-				(unsigned)(std::uint8_t)binByteArray[i]);
-			break;
-		}
-	}
-	QVERIFY(byteArray == binByteArray);
-}
-
-
 //-------------------------------------------------
 //  stringTable
 //-------------------------------------------------