mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
don't test crypt if not present
* test-suite/tests/posix.test (crypt): throw unsupported if crypt not presetnt
This commit is contained in:
parent
cdcdd29e8e
commit
d6afb41192
1 changed files with 5 additions and 1 deletions
|
@ -260,10 +260,14 @@
|
||||||
(with-test-prefix "crypt"
|
(with-test-prefix "crypt"
|
||||||
|
|
||||||
(pass-if "basic usage"
|
(pass-if "basic usage"
|
||||||
(string? (crypt "pass" "abcdefg")))
|
(if (not (defined? 'crypt))
|
||||||
|
(throw 'unsupported)
|
||||||
|
(string? (crypt "pass" "abcdefg"))))
|
||||||
|
|
||||||
(pass-if "crypt invalid salt on glibc"
|
(pass-if "crypt invalid salt on glibc"
|
||||||
(begin
|
(begin
|
||||||
|
(unless (defined? 'crypt)
|
||||||
|
(throw 'unsupported))
|
||||||
(unless (string-contains %host-type "-gnu")
|
(unless (string-contains %host-type "-gnu")
|
||||||
(throw 'unresolved))
|
(throw 'unresolved))
|
||||||
(catch 'system-error
|
(catch 'system-error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue