projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6fd67
)
Fix overly sensitive g_ascii_strncasecmp tests.
author
Jay Krell
<jaykrell@microsoft.com>
Sat, 20 Jul 2019 07:18:29 +0000
(
00:18
-0700)
committer
Larry Ewing
<lewing@microsoft.com>
Wed, 4 Sep 2019 03:46:10 +0000
(22:46 -0500)
Commit migrated from https://github.com/mono/mono/commit/
82d4d8d81d5a5d9eefaec7bac09e9eb9cd2ce32f
src/mono/mono/eglib/test/string-util.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/eglib/test/string-util.c
b/src/mono/mono/eglib/test/string-util.c
index
ddb5685
..
fb44722
100644
(file)
--- a/
src/mono/mono/eglib/test/string-util.c
+++ b/
src/mono/mono/eglib/test/string-util.c
@@
-624,12
+624,12
@@
test_ascii_strncasecmp (void)
return FAILED ("Should have been 0");
n = g_ascii_strncasecmp ("423", "123", 1);
- if (n
!= 3
)
- return FAILED ("Should have been
3
, got %d", n);
+ if (n
<= 0
)
+ return FAILED ("Should have been
> 0
, got %d", n);
n = g_ascii_strncasecmp ("123", "423", 1);
- if (n
!= -3
)
- return FAILED ("Should have been
-3
, got %d", n);
+ if (n
>= 0
)
+ return FAILED ("Should have been
< 0
, got %d", n);
n = g_ascii_strncasecmp ("1", "1", 10);
if (n != 0)