summaryrefslogtreecommitdiff
path: root/tests/defaults
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-12 12:22:25 +0100
committerJakob Unterwurzacher2017-02-12 12:22:25 +0100
commit357307cbcfaafb2b22f01e780d717df1a3f8eb1b (patch)
tree7cc31d99eff4ac4ef284b7505fb6c16f2d5bf605 /tests/defaults
parent0f40afc8321746ebd0ba0131b3296dd160f84ccc (diff)
tests: ctlsock: check warning for non-canonical paths
Diffstat (limited to 'tests/defaults')
-rw-r--r--tests/defaults/main_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go
index 089f940..52ca727 100644
--- a/tests/defaults/main_test.go
+++ b/tests/defaults/main_test.go
@@ -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")
+ }
}
}