Skip to content

Commit

Permalink
test improvements open-telemetry#2
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Aug 22, 2023
1 parent 8065b1f commit c1c8655
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions instrgen/driver/instrgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,17 @@ func TestExecutePass(t *testing.T) {
func TestDriverMain(t *testing.T) {
executor := &NullExecutor{}
{
os.Remove("instrgen_cmd.json")
err := os.Remove("instrgen_cmd.json")
_ = err
var args []string
args = append(args, "compile")
err := driverMain(args, executor)
err = driverMain(args, executor)
require.Error(t, err)
}
for k := range testcases {
var args []string
files := alib.SearchFiles(k, ".go")
args = append(args, "-o")
args = append(args, "/tmp/go-build")
args = append(args, "-p")
args = append(args, "main")
args = append(args, "-pack")
args = append(args, "-asmhdr")
args = append(args, "go_asm.h")
args = append(args, []string{"-o", "/tmp/go-build", "-p", "main", "-pack", "-asmhdr", "go_asm.h"}...)
args = append(args, files...)
var instrgenCfg InstrgenCmd
instrgenCfg.FilePattern = k
Expand Down

0 comments on commit c1c8655

Please sign in to comment.