Disable CGO in one more place (plus add a todo)

This commit is contained in:
David Dworken 2022-09-21 20:30:50 -07:00
parent cb16984f77
commit 133463ef96

View File

@ -876,7 +876,7 @@ func testHishtoryBackgroundSaving(t *testing.T, tester shellTester) {
// Test install with an unset HISHTORY_TEST var so that we save in the background (this is likely to be flakey!)
out := tester.RunInteractiveShell(t, `unset HISHTORY_TEST
go build -o /tmp/client
CGO_ENABLED=0 go build -o /tmp/client
/tmp/client install`)
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
matches := r.FindStringSubmatch(out)
@ -1494,3 +1494,5 @@ ls /tmp`, randomCmdUuid, randomCmdUuid)
t.Fatalf("hishtory export mismatch (-expected +got):\n%s\nout=%#v", diff, out)
}
}
// TODO: Add a test with different users