* Re: Run unit tests with C++ too [not found] <4d5510d1-bdc6-43de-abbc-749eaa3c75a4@lysator.liu.se> @ 2024-04-29 8:01 ` Ferruh Yigit 2024-04-29 22:49 ` Tyler Retzlaff 0 siblings, 1 reply; 2+ messages in thread From: Ferruh Yigit @ 2024-04-29 8:01 UTC (permalink / raw) To: Mattias Rönnblom, dev, ci, dpdklab Cc: Mattias Rönnblom, Richardson, Bruce, Aaron Conole On 4/28/2024 8:46 AM, Mattias Rönnblom wrote: > It would be great if the unit test suite (app/test/*) was compiled (and > run) using a C++ (C++11) compiler as well. At least, if such is available. > > With the current state of affairs, header file macros or functions are > not verified to be functional (or even valid) C++. > > "C is a subset of C++", which was never true, is becoming less and less so. > > If all unit tests aren't valid C++, maybe one could start with an "opt > in" model. > > A drawback of this is that the unit tests need to be both valid C and > valid C++. > +1 cc'ing CI mailing list and CI lab. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Run unit tests with C++ too 2024-04-29 8:01 ` Run unit tests with C++ too Ferruh Yigit @ 2024-04-29 22:49 ` Tyler Retzlaff 0 siblings, 0 replies; 2+ messages in thread From: Tyler Retzlaff @ 2024-04-29 22:49 UTC (permalink / raw) To: Ferruh Yigit Cc: Mattias Rönnblom, dev, ci, dpdklab, Mattias Rönnblom, Richardson, Bruce, Aaron Conole On Mon, Apr 29, 2024 at 09:01:08AM +0100, Ferruh Yigit wrote: > On 4/28/2024 8:46 AM, Mattias Rönnblom wrote: > > It would be great if the unit test suite (app/test/*) was compiled (and > > run) using a C++ (C++11) compiler as well. At least, if such is available. > > > > With the current state of affairs, header file macros or functions are > > not verified to be functional (or even valid) C++. > > > > "C is a subset of C++", which was never true, is becoming less and less so. > > > > If all unit tests aren't valid C++, maybe one could start with an "opt > > in" model. > > > > A drawback of this is that the unit tests need to be both valid C and > > valid C++. > > > > +1 > > cc'ing CI mailing list and CI lab. +1 too ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-29 22:49 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <4d5510d1-bdc6-43de-abbc-749eaa3c75a4@lysator.liu.se> 2024-04-29 8:01 ` Run unit tests with C++ too Ferruh Yigit 2024-04-29 22:49 ` Tyler Retzlaff
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 NNTP newsgroup(s).