io-identity.lisp 745 B

1234567891011121314151617181920
  1. (in-package :translator-test)
  2. (def-test-method io-identity-test ((test io-test))
  3. (with-testport (p1 (file-name-lookup +translator-root+))
  4. (with-testport (p2 (file-name-lookup +translator-root+))
  5. (multiple-value-bind (idport fsysport ino)
  6. (io-identity p1)
  7. (assert-true (and (port-valid-p idport)
  8. (port-valid-p fsysport)))
  9. (multiple-value-bind (idport2 fsysport2 ino2)
  10. (io-identity p2)
  11. (assert-true (and (port-valid-p idport2)
  12. (port-valid-p fsysport2)))
  13. (assert-equal ino ino2)
  14. (port-deallocate idport2)
  15. (port-deallocate fsysport2))
  16. (port-deallocate idport)
  17. (port-deallocate fsysport)))))