예제 #1
0
 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);
 }
예제 #2
0
        private void RunAnalysisAndVerify(string cmd, string err)
        {
            processHandler.SetOutputForCommand("gdb", cmd);
            processHandler.SetErrorForCommand("gdb", err);
            analysis.Analyze();

            VerifyWrittenFiles(cmd, err == "" ? null : err);
        }