]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/websocket/websocket-functional-test.el
Version 1.6, mostly fixes for fragmented headers.
[gnu-emacs-elpa] / packages / websocket / websocket-functional-test.el
index 6a9481fc23fd970f838575dbf627ec1afa99f2e7..1bbd190d9e0ec59d9d4c1dfcd5802acd64a3be39 100644 (file)
 (websocket-close wstest-ws)
 (assert (null (websocket-openp wstest-ws)))
 
-(stop-process wstest-server-proc)
+(if (not (eq system-type 'windows-nt))
+    ; Windows doesn't have support for the SIGSTP signal, so we'll just kill
+    ; the process.
+    (stop-process wstest-server-proc))
 (kill-process wstest-server-proc)
 
 ;; Make sure the processes are closed.  This happens asynchronously,
@@ -93,6 +96,8 @@
 
 (when (>= (string-to-int (substring emacs-version 0 2)) 24)
   (message "Testing with wss://echo.websocket.org")
+  (when (eq system-type 'windows-nt)
+    (message "Windows users must have gnutls DLLs in the emacs bin directory."))
   (setq wstest-ws
         (websocket-open
          "wss://echo.websocket.org"
 (setq wstest-closed nil)
 (setq server-conn (websocket-server
                    9998
+                   :host 'local
                    :on-message (lambda (ws frame)
                                  (message "Server received text!")
                                  (websocket-send-text ws