mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Wed May 29 12:53:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* version.h (VERSION): Set to 1.90. * Makerules (distinfo-vars): Write extra-libs and *-routines for each of its elts. * MakeTAGS (sources): Add those sources. * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c). Wed May 29 08:53:08 1996 Miles Bader <miles@gnu.ai.mit.edu> * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the itimer thread. * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling _hurd_proc_init. * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null token instead of it being implicitly skipped.
This commit is contained in:
@ -417,8 +417,8 @@ DEFUN(main, (argc, argv), int argc AND char **argv)
|
||||
equal(strsep(&cp, ", "), "third", 4);
|
||||
check(strsep(&cp, ", ") == NULL, 5);
|
||||
cp = strcpy(one, ", first, ");
|
||||
equal(strsep(&cp, ", "), "first", 6); /* Extra delims, 1 tok. */
|
||||
check(strsep(&cp, ", ") == NULL, 7);
|
||||
equal(strsep(&cp, ", "), "", 6); /* null token. */
|
||||
equal(strsep(&cp, ", "), "", 7);
|
||||
cp = strcpy(one, "1a, 1b; 2a, 2b");
|
||||
equal(strsep(&cp, ", "), "1a", 8); /* Changing delim lists. */
|
||||
equal(strsep(&cp, "; "), "1b", 9);
|
||||
@ -435,7 +435,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv)
|
||||
check(strsep(&cp, ", ") == NULL, 18);
|
||||
check(strsep(&cp, ", ") == NULL, 19); /* Persistence. */
|
||||
cp = strcpy(one, ", ");
|
||||
check(strsep(&cp, ", ") == NULL, 20); /* No tokens. */
|
||||
check(strsep(&cp, ", ") == one, 20); /* Null token. */
|
||||
cp = strcpy(one, "");
|
||||
check(strsep(&cp, ", ") == NULL, 21); /* Empty string. */
|
||||
cp = strcpy(one, "abc");
|
||||
|
Reference in New Issue
Block a user