public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Writing unit tests for newlib/libc/unix/dirname.c
@ 2022-11-16 17:56 Kevin Connor Arpe
  2022-11-17  8:11 ` Csaba Raduly
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Connor Arpe @ 2022-11-16 17:56 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]

Hello,

Newbie here.  "Long time listener, first time caller!"
I am an "ok" C programmer, but definitely not expert / kernel-level.

I am trying to write unit tests for newlib/libc/unix/dirname.c.
(That function has so many tricky corner cases!)
I tried to follow from: newlib/testsuite/newlib.string/memcpy-1.c
However, I cannot make unit tests run via: make test

What am I doing wrong?  How can I run the unit tests from memcpy-1.c?

Last: I know that newlib != cygwin.  If I sent this email the wrong mailing
list, please let me know.

Kind regards,
Kevin ARPE
Tokyo, Japan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Writing unit tests for newlib/libc/unix/dirname.c
  2022-11-16 17:56 Writing unit tests for newlib/libc/unix/dirname.c Kevin Connor Arpe
@ 2022-11-17  8:11 ` Csaba Raduly
  0 siblings, 0 replies; 2+ messages in thread
From: Csaba Raduly @ 2022-11-17  8:11 UTC (permalink / raw)
  To: Kevin Connor Arpe; +Cc: cygwin

On Wed, 16 Nov 2022 at 18:57, Kevin Connor Arpe  wrote:
> I am trying to write unit tests for newlib/libc/unix/dirname.c.
> (That function has so many tricky corner cases!)
> I tried to follow from: newlib/testsuite/newlib.string/memcpy-1.c
> However, I cannot make unit tests run via: make test
>
> What am I doing wrong?

You didn't tell us what happened when you ran   make test.

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-17  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 17:56 Writing unit tests for newlib/libc/unix/dirname.c Kevin Connor Arpe
2022-11-17  8:11 ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).