mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-18 19:16:44 +02:00
Disable CGO in one more place (plus add a todo)
This commit is contained in:
parent
cb16984f77
commit
133463ef96
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user