public void TestModuleNameUpdated() { PrepareModuleWithBinary(1234, "actual module name"); PrepareSampleThread(1234); processHandler.SetOutputForCommand("addr2line", "??\n??:0"); analysis.Analyze(); Assert.AreEqual("actual module name", GetFirstStackFrame().ModuleName); Assert.IsNull(GetFirstStackFrame().SourceInfo); }
private void RunAnalysisAndVerify(string cmd, string err) { processHandler.SetOutputForCommand("gdb", cmd); processHandler.SetErrorForCommand("gdb", err); analysis.Analyze(); VerifyWrittenFiles(cmd, err == "" ? null : err); }