TestsUser/Prelinked: Don't try to prelink vSMC when Lilu was not.
@@ -502,6 +502,7 @@ int main(int argc, char** argv) {
DEBUG ((DEBUG_WARN, "%s injected - %r\n", argc > 2 ? "Passed.kext" : "Lilu.kext", Status));
#ifndef TEST_SLE
+ if (argc <= 2) {
Status = PrelinkedInjectKext (
&Context,
"/Library/Extensions/VirtualSMC.kext",
@@ -513,6 +514,7 @@ int main(int argc, char** argv) {
);
DEBUG ((DEBUG_WARN, "VirtualSMC.kext injected - %r\n", Status));
+ }
Status = PrelinkedInjectComplete (&Context);
