diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-10-20 14:43:00 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-10-20 14:43:00 +0000 |
commit | b0c0b79136b214219c0f50a5ff0ac024d7182632 (patch) | |
tree | e03c49b5d569ac3d879a1e67e914ab7784adcb44 /tests | |
parent | ad1f706fdaa0a028c98f07a3573cc271446ade93 (diff) | |
download | php-git-b0c0b79136b214219c0f50a5ff0ac024d7182632.tar.gz |
MFH: Fixed test for cygwin installs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/strings/001.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/strings/001.phpt b/tests/strings/001.phpt index ceca4351b6..d5e2f64774 100644 --- a/tests/strings/001.phpt +++ b/tests/strings/001.phpt @@ -181,7 +181,10 @@ echo "Testing uniqid: "; $str = "prefix"; $ui1 = uniqid($str); $ui2 = uniqid($str); -if (strlen($ui1) == strlen($ui2) && strlen($ui1) == 19 && $ui1 != $ui2) { + +$len = strncasecmp(PHP_OS, 'CYGWIN', 6) ? 19 : 29; + +if (strlen($ui1) == strlen($ui2) && strlen($ui1) == $len && $ui1 != $ui2) { echo("passed\n"); } else { echo("failed!\n"); |