TestsUser: Make Prelinked.c inject from multiple stdin
@@ -473,6 +473,7 @@ int main(int argc, char** argv) {
CHAR8 *TestPlist = LiluKextInfoPlistData;
UINT32 TestPlistSize = LiluKextInfoPlistDataSize;
+ while (argc > 2) {
if (argc > 2) {
TestData = readFile(argv[2], &TestDataSize);
if (TestData == NULL) {
@@ -501,6 +502,9 @@ int main(int argc, char** argv) {
DEBUG ((DEBUG_WARN, "%s injected - %r\n", argc > 2 ? "Passed.kext" : "Lilu.kext", Status));
+ argc -= 2;
+ }
+
#ifndef TEST_SLE
if (argc <= 2) {
Status = PrelinkedInjectKext (
