From 357307cbcfaafb2b22f01e780d717df1a3f8eb1b Mon Sep 17 00:00:00 2001
From: Jakob Unterwurzacher
Date: Sun, 12 Feb 2017 12:22:25 +0100
Subject: tests: ctlsock: check warning for non-canonical paths

---
 tests/defaults/main_test.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'tests/defaults')

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")
+		}
 	}
 }
 
-- 
cgit v1.2.3