[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests/test-strstr.c: Add another self-test.
From: |
Simon Josefsson |
Subject: |
[PATCH] tests/test-strstr.c: Add another self-test. |
Date: |
Tue, 26 May 2009 14:15:30 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux) |
Pushed.
/Simon
---
ChangeLog | 4 ++++
tests/test-strstr.c | 10 +++++++++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 993b6ad..96d5f10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-26 Simon Josefsson <address@hidden>
+
+ * tests/test-strstr.c: Add another self-test.
+
2009-05-23 Bruno Haible <address@hidden>
* doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
diff --git a/tests/test-strstr.c b/tests/test-strstr.c
index 8a05e88..d8bec15 100644
--- a/tests/test-strstr.c
+++ b/tests/test-strstr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2007, 2008 Free Software Foundation
+ * Copyright (C) 2004, 2007, 2008, 2009 Free Software Foundation
* Written by Bruno Haible and Eric Blake
*
* This program is free software: you can redistribute it and/or modify
@@ -61,6 +61,14 @@ main (int argc, char *argv[])
}
{
+ /* See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 */
+ char *input = strdup ("aBaaaaaaaaaaax");
+ const char *result = strstr (input, "B1x");
+ ASSERT (result == NULL);
+ free (input);
+ }
+
+ {
const char input[] = "ABC ABCDAB ABCDABCDABDE";
const char *result = strstr (input, "ABCDABD");
ASSERT (result == input + 15);
--
1.6.2.4
- [PATCH] tests/test-strstr.c: Add another self-test.,
Simon Josefsson <=
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Eric Blake, 2009/05/26
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Simon Josefsson, 2009/05/26
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Eric Blake, 2009/05/26
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Eric Blake, 2009/05/26
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Bruno Haible, 2009/05/26
- Re: [PATCH] tests/test-strstr.c: Add another self-test., Eric Blake, 2009/05/26
- required memchr behavior (was: [PATCH] tests/test-strstr.c: Add another self-test.), Eric Blake, 2009/05/29
- Re: required memchr behavior, Matthew Woehlke, 2009/05/29
- Re: required memchr behavior, Eric Blake, 2009/05/29
- Re: required memchr behavior, Matthew Woehlke, 2009/05/29