tests: ctlsock: check warning for non-canonical paths

This commit is contained in:
Jakob Unterwurzacher 2017-02-12 12:22:25 +01:00
parent 0f40afc832
commit 357307cbcf
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ func TestCtlSock(t *testing.T) {
for _, c := range crashers {
req.EncryptPath = c
// QueryCtlSock calls t.Fatal if it gets EOF when gocryptfs panics
test_helpers.QueryCtlSock(t, sock, req)
response = test_helpers.QueryCtlSock(t, sock, req)
if response.WarnText == "" {
t.Errorf("We should get a warning about non-canonical paths here")
}
}
}