Page MenuHomeFreeBSD

libc/tests: Add test case for bug fixed in r343566
ClosedPublic

Authored by kevans on Jan 30 2019, 3:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 18 2024, 7:44 AM
Unknown Object (File)
Jan 28 2024, 3:18 PM
Unknown Object (File)
Jan 28 2024, 3:18 PM
Unknown Object (File)
Dec 22 2023, 7:27 PM
Unknown Object (File)
Dec 20 2023, 4:42 AM
Unknown Object (File)
Dec 11 2023, 1:09 AM
Unknown Object (File)
Nov 24 2023, 8:18 AM
Unknown Object (File)
Nov 11 2023, 6:54 AM

Details

Summary
  • Module split out
  • Comment added to roughly describe what's going on, cherry-picked from rS343566 for the most part
  • Copyright header massaged a little bit to include the full license text and move the SPDX identifier up to where we've generally placed it (pending @andrew_tao173.riddles.org.uk approval, to be safe, though I picture no objections)
  • The build glue is admittedly...not ideal looking; I was unsure of the most ideal approach, but it's clear the module build must be separate from the test programs.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 22266

Event Timeline

Of course I have no objections (moving the license text from LICENSE into the source files is completely compatible with both the intent and the stated terms of the license).

Do you intend to do a pass to make at least some style(9) recommendations not broken ?

Address some of the style(9) concerns (bah =)):

  • Move declarations to the top
  • Blank lines after declarations
  • Parenthesized return expressions
  • Re-style switch to remove excessive bracing and reindent
lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c
34

You need to add $FreeBSD$ tags, otherwise pre-commit hooks would block the commit.

40

Extra blank line.

44

Are there macros needed ?

65

if (rc != 0)

68

better use break there ?

73

and there

lib/libc/tests/stdlib/dynthr_test.c
40

Extra blank line.

81

if (mod_handle != NULL)

85

!= NULL.

88

*)rawfunc

kevans marked 10 inline comments as done.

I was attempting to leave the original case as unmolested as possible (hence also the macros -- shims so we don't print things out in the test), but I don't care enough to object.

Fixed the things pointed out and ripped out the parts that speak since they're likely never going to be used in this context.

This revision is now accepted and ready to land.Jan 30 2019, 8:15 PM
This revision was automatically updated to reflect the committed changes.