-
Notifications
You must be signed in to change notification settings - Fork 37
Description
I had some test code that was abusing the process dispatcher to resolve test addresses so that I could validate that systing was doing the correct thing wrt generating stack trace tracks.
However I changed the systing code to no longer emit anything if we got an error other than MissingSyms, and then my tests broke. Turns out my mock dispatcher thing never actually worked, because I was using random test PIDs that didn't have a /proc/$PID/ directory, so blazesym was just throwing an UnknownAddr error.
I looked through the code and there doesn't appear to be a way to mock out what I need to provide custom symbolization since the /proc/$PID thing is internal. I'd love a way to mock this out so I can have unit testing around stack trace generation.