Skip to content

Commit

Permalink
test impr open-telemetry#2
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Aug 22, 2023
1 parent 0d72bb7 commit 8d47776
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions instrgen/driver/instrgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ func TestToolExecMain(t *testing.T) {
for k := range testcases {
var args []string
files := alib.SearchFiles(k, ".go")
args = append(args, "-pack")
args = append(args, "-asmhdr")
args = append(args, "go_asm.h")
args = append(args, []string{"-pack", "-asmhdr", "go_asm.h"}...)
args = append(args, files...)
var instrgenCfg InstrgenCmd
instrgenCfg.FilePattern = k
Expand Down Expand Up @@ -216,10 +214,7 @@ func TestDriverMain(t *testing.T) {
}
for k := range testcases {
var args []string
args = append(args, "--inject")
args = append(args, k)
args = append(args, "yes")
args = append(args, "main.main")
args = append(args, []string{"--inject", k, "yes", "main.main"}...)
err := driverMain(args, executor)
assert.NoError(t, err)
}
Expand Down

0 comments on commit 8d47776

Please sign in to comment.