DPDK patches and discussions
 help / color / mirror / Atom feed
* Run unit tests with C++ too
@ 2024-04-28  7:46 Mattias Rönnblom
  2024-04-29  8:01 ` Ferruh Yigit
  2024-04-30 13:52 ` Patrick Robb
  0 siblings, 2 replies; 12+ messages in thread
From: Mattias Rönnblom @ 2024-04-28  7:46 UTC (permalink / raw)
  To: dev; +Cc: Mattias Rönnblom, Richardson, Bruce

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++.

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

end of thread, other threads:[~2024-05-01 14:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28  7:46 Run unit tests with C++ too Mattias Rönnblom
2024-04-29  8:01 ` Ferruh Yigit
2024-04-29 22:49   ` Tyler Retzlaff
2024-04-30 13:52 ` Patrick Robb
2024-04-30 18:01   ` Tyler Retzlaff
2024-04-30 20:13   ` Mattias Rönnblom
2024-04-30 20:57     ` Patrick Robb
2024-05-01  9:10       ` Ferruh Yigit
2024-05-01 10:15         ` Bruce Richardson
2024-05-01 14:14         ` Mattias Rönnblom
2024-05-01 14:38           ` Ferruh Yigit
2024-05-01 14:45             ` Bruce Richardson

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).