Finally getting back to Debuginfod tests: I've migrated the tests in my [earlier PR](https://github.com/llvm/llvm-project/pull/79181) from shell to API (at @JDevlieghere's suggestion) and addressed a couple issues that came about during testing. The tests first test the "normal" situation (no DebugInfoD involvement, just normal debug files sitting around), then the "no debug info" situation (to make sure the test is seeing failure properly), then it tests to validate that when Debuginfod returns the symbols, things work properly. This is duplicated for DWP/split-dwarf scenarios. --------- Co-authored-by: Kevin Frei <freik@meta.com>
8 lines
197 B
C
8 lines
197 B
C
// This is a dump little pair of test files
|
|
|
|
int func(int argc, const char *argv[]) {
|
|
return (argc + 1) * (argv[argc][0] + 2);
|
|
}
|
|
|
|
int main(int argc, const char *argv[]) { return func(0, argv); }
|