kubo / injector

Library for injecting a shared library into a Linux or Windows process
GNU General Public License v2.0
504 stars 97 forks source link

Fix error-checking test on newer distros #20

Closed melvyn2 closed 2 years ago

melvyn2 commented 2 years ago

The test which checks for an error message when injecting Makefile fails on newer distros because they return the error string invalid ELF header which the test does not expect. This patch checks just the start of the error string so that both old and new behavior are passing, while still failing on other unexpected error messages.

Ubuntu 18.04 doesn't have this problem, which is why the CI testing hasn't picked it up yet.

kmaork commented 2 years ago

Might be fixed by https://github.com/kubo/injector/pull/22

kubo commented 2 years ago

@melvyn2 Thanks and sorry for the late merging.