summaryrefslogtreecommitdiff
path: root/source3/torture/t_strcmp.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-02-28 03:34:18 +0000
committerMartin Pool <mbp@samba.org>2003-02-28 03:34:18 +0000
commit37e39f5be4ae0156565b009ae210f2c95e906142 (patch)
treeffbeb53ec5702f203ee4e6278548bea61333754e /source3/torture/t_strcmp.c
parentdb47e9450aff5ff5b6853f163d4aab117d1c77aa (diff)
downloadsamba-37e39f5be4ae0156565b009ae210f2c95e906142.tar.gz
samba-37e39f5be4ae0156565b009ae210f2c95e906142.tar.bz2
samba-37e39f5be4ae0156565b009ae210f2c95e906142.zip
Add simple test harness that exposes StrCaseCmp for testing.
(This used to be commit ab77beca041595bc3bd70de3a6e1b49159a4964b)
Diffstat (limited to 'source3/torture/t_strcmp.c')
-rw-r--r--source3/torture/t_strcmp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/torture/t_strcmp.c b/source3/torture/t_strcmp.c
new file mode 100644
index 0000000000..622769001b
--- /dev/null
+++ b/source3/torture/t_strcmp.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2003 by Martin Pool
+ *
+ * Test harness for StrCaseCmp
+ */
+
+#include "includes.h"
+
+int main(int argc, char *argv[])
+{
+ if (argc != 3) {
+ fprintf(stderr, "usage: %s STRING1 STRING2\nCompares two strings\n",
+ argv[0]);
+ return 2;
+ }
+
+ printf("%d\n", StrCaseCmp(argv[1], argv[2]));
+
+ return 0;
+}