Fix the tst_QPluginLoader::loadCorruptElf on 64 bit
The error message do not match Reviewed-by: Arvid Ephraim Picciani (cherry picked from commit 383f57dd2669b71fd14cf9b6b56213423a3d2d01)
This commit is contained in:
parent
2d07ca2cbd
commit
3a0f5d04fc
@ -370,15 +370,15 @@ if (sizeof(void*) == 8) {
|
||||
|
||||
QPluginLoader lib1(SRCDIR "elftest/corrupt1.elf64.so");
|
||||
QCOMPARE(lib1.load(), false);
|
||||
QVERIFY(lib1.errorString().contains("not an ELF object"));
|
||||
QVERIFY(lib1.errorString().contains("not a valid Qt plugin"));
|
||||
|
||||
QPluginLoader lib2(SRCDIR "elftest/corrupt2.elf64.so");
|
||||
QCOMPARE(lib2.load(), false);
|
||||
QVERIFY(lib2.errorString().contains("invalid"));
|
||||
QVERIFY(lib2.errorString().contains("not a valid Qt plugin"));
|
||||
|
||||
QPluginLoader lib3(SRCDIR "elftest/corrupt3.elf64.so");
|
||||
QCOMPARE(lib3.load(), false);
|
||||
QVERIFY(lib3.errorString().contains("invalid"));
|
||||
QVERIFY(lib3.errorString().contains("not a valid Qt plugin"));
|
||||
} else if (sizeof(void*) == 4) {
|
||||
QPluginLoader libW(SRCDIR "elftest/corrupt3.elf64.so");
|
||||
QCOMPARE(libW.load(), false);
|
||||
|
Loading…
Reference in New Issue
Block a user