Commit Graph

345 Commits

Author SHA1 Message Date
mrg e3dc1c5e34 make this test actually work:
- posix_memalign() does not set errno, it returns 0 or an error number
  (maybe a jemalloc() vs. phkmalloc() issue, but also how the opengroup
  documents it.)
- since "align" must be >= sizeof(void *), expect to fail align=4 on
  LP64 systems.
- while i'm here, add a test for align=2 failing everywhere.
2010-01-26 22:14:01 +00:00
uebayasi fac33cd8a3 Handle undefined USE_SSP. XXX *_SSP variables needs clean-up. 2009-11-25 09:30:04 +00:00
uebayasi 82bc011c43 Descend into ssp/ only if ${USE_SSP} is yes. 2009-11-25 09:22:36 +00:00
dsl 846f8720b2 Start with alignment '1' and write the search char to the byte before
the buffer.
XXX needs tests searching for 0xff.
2009-07-18 16:34:47 +00:00
dsl 8b3b305143 Add tests that scan for 0x0 and 0xff.
Remove the 'answers' section from the test definition, instead use our
own version of strchr() to determine the what the answer should be.
On error report which test we are doing, and the answer we got.
If symbol "test_strchr" exists, test that function instead of strchr().
(With a very dodgy strchr() other things fail badly.
2009-07-18 09:20:46 +00:00
pgoyette 0eb19985a4 We can try to trick the compiler, but at least we need to let it
compile!  (Hello, dsl!)
2009-07-18 04:34:32 +00:00
dsl ea7ea23a08 Pollute the space either side of the string being compared with the test
pattern.
2009-07-17 22:07:36 +00:00
dsl 749e537220 The local function pointer wasn't enough to stop gcc using the builtin
strlen!  Move to file scope and make 'volatile'.
When test fails use write (printf might be broken) to report info.
To aid testing new versions, use dlsym() for "test_strlen" defaulting to
strlen() so that the rest of the program doesn't use the broken version.
2009-07-11 11:45:16 +00:00
christos e100a74164 add regression test for gdtoa large field width. 2009-05-07 20:40:25 +00:00
drochner 103beeac7d add a test which stresses the rbtree code with random numbers 2009-04-02 12:49:59 +00:00
christos a009ca9c11 si_sigval is now si_value. 2009-02-17 19:22:43 +00:00
christos cfd10fe258 add a regression test for sigfpe. Most ports don't pass it right now. 2009-02-17 19:05:22 +00:00
ad 1f73905f59 signal(getpid(), SIGFOO) -> raise(SIGFOO) 2009-01-30 23:19:12 +00:00
nonaka 459e757bd6 Use %zu instead of %lu. for size_t. 2009-01-25 17:00:09 +00:00
lukem 540d0089bd sign-compare fix 2009-01-25 13:40:05 +00:00
christos 3048e3cf13 add glue to compile all the files we use from libc here. 2009-01-24 22:11:45 +00:00
lukem c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
christos 688adf3edf whitespace regression test from Andy Shevchenko 2008-08-28 16:40:05 +00:00
christos 70e554789a mktime regression test from Andy Shevchenko 2008-08-27 08:50:04 +00:00
lukem 38e498a29c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:33:31 +00:00
martin 8acaa04128 Move to 2 clause license (can you spot the typo in the old text?) 2008-05-02 18:55:06 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
drochner ba327d4301 make this compile again
(it isn't built by default, but anyway)
2008-04-01 19:20:43 +00:00
dholland 794833ef2c Make this smarter still, so it folds multiple names for the same port
together (and drops duplicate names entirely) like services_mkdb now
does. PR lib/37711.
2008-03-09 01:31:07 +00:00
dholland 678f3eced6 Make this smarter; diff the output instead of just wc'ing it. 2008-03-08 23:32:38 +00:00
christos 342c547a73 regression test for posix_memalign 2008-02-03 22:56:13 +00:00
ginsbach b0f72f0138 Add regression test for inet_network(3). 2008-01-19 04:12:20 +00:00
ginsbach 05d6614378 Fix PR/37710. Correct botched test result. This lead to an erroneous
regression failure.
2008-01-08 03:49:01 +00:00
martin 3c255188f8 Only remove the dbfile if no filename was given via -f 2008-01-06 19:42:32 +00:00
martin 9585e85c4d Remove the test db file when done testing. 2008-01-03 13:52:46 +00:00
seb 975a58878b Fix stresep(3) handling of consecutive quoted delimiter characters.
Approved by christos@
2007-12-06 22:07:07 +00:00
tnozaki 0d66ddd732 more PR/36938
- don't re-initialize internal-state when current locale is stateless encoding.
- fix testcase filedir problem.
2007-11-26 16:09:50 +00:00
martin ed3f875e0a gcc constant folding at compile time works around the real points of these
tests - so enforce -O0.
2007-11-07 00:08:50 +00:00
martin b7145352b8 Add another cast variant that might (and currently does) fail - pointed
out by Holger Weiss on port-sparc64.
2007-11-07 00:03:09 +00:00
tnozaki 0941b12b16 lib/36938 mbtowc misbehaving after invalid char sequence
- make sure to initialize mbtowc's internal state.
 - add regression test.
2007-09-18 15:12:07 +00:00
ginsbach 15b661abe9 Fix several end cases:
o If a long option looks like an ambiguous abbreviation of two or more long
  options, but all the possible interpretations would return the same
  value, then just return that value without complaining that it's
  ambiguous.

o If a long option could be interpreted either as an exact match for one
  long option, or as an abbreviation for one or more other long options,
  then treat it as the exact match.

These changes align NetBSD's getopt_long(3) with the current behavior of
GNU getopt_long(3), the de facto standard, and FreeBSD's getopt_long(3).
2007-07-05 16:05:40 +00:00
ginsbach 67a9c3250c Remove debugging code accidently left in the original commit. This should
make the test a bit less verbose.
2007-06-19 20:44:28 +00:00
he 71da552ff1 If HAS_SSP == "no", don't descend into the ssp subdirectory, because
building there will fail.
2007-06-02 11:09:22 +00:00
martin e26aa3fe3e backout previous - needs more investigation 2007-06-01 17:15:19 +00:00
martin 0b39ba0208 This LDFLAGS setting looks like a copy&pasto 2007-06-01 16:54:11 +00:00
christos 5d8aa4c7a5 ssp is now part of libc. 2007-05-31 21:51:48 +00:00
dogcow 980bf56bd3 fallout from si_sigval -> si_value 2007-05-21 20:18:01 +00:00
christos 81ef0c79d1 s/si_sigval/si_value/ From Blair Sadewitz. 2007-05-21 20:02:40 +00:00
enami d4d6c3ff03 Rephrase the comment slightly to note that which revision of
humanize_number.c fails to handle these cases.
2007-03-13 02:56:18 +00:00
enami 1e59139e04 Make -DINTREE (a flag to tell make(1) to build the test program
with using in tree humanize_number.c) works again.
2007-03-12 03:39:57 +00:00
enami 1a453a687f Add failure case reported by Greg Troxel. 2007-03-12 03:38:21 +00:00
drochner 89d741cf50 initialize line counter for fparseln() 2007-03-07 15:13:50 +00:00
christos 016db3548e make this compile with -DSTATISTICS 2007-02-03 23:46:40 +00:00
christos 980e6dca8f - knf, ansi, lint etc. 2007-02-03 23:04:04 +00:00