summaryrefslogtreecommitdiff
path: root/test/abts.c
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2004-06-21 16:08:57 +0000
committerDavid Reid <dreid@apache.org>2004-06-21 16:08:57 +0000
commite7449e3979642e9cbaf9c3cf3d9e58858649d82a (patch)
tree6705371d4b415dbda6e87e9376eaebd76cc91ad8 /test/abts.c
parent03300e5accb739657b550b7e28d2d80747c2b14b (diff)
downloadapr-e7449e3979642e9cbaf9c3cf3d9e58858649d82a.tar.gz
Bring in the patch from apr-util that allows for NULL strings to be passed
into abts_str_equal. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/abts.c')
-rw-r--r--test/abts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/abts.c b/test/abts.c
index 18c6bc646..d10dda4d9 100644
--- a/test/abts.c
+++ b/test/abts.c
@@ -259,7 +259,9 @@ void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int
update_status();
if (tc->failed) return;
- if (!strcmp(expected, actual)) return;
+ if (!expected && !actual) return;
+ if (expected && actual)
+ if (!strcmp(expected, actual)) return;
tc->failed = TRUE;
if (verbose) {