In article <zhRwf.1178$Hd4.895@newsread1.news.pas.earthlink.n et>, "Mike Wahler" <mkwahler@mkwahler.net> writes:[color=blue]
> "deanhiller" <work@xsoftware.biz> wrote in message
> news:1136900572.803951.311730@g47g2000cwa.googlegr oups.com...[color=green]
> > My question is to how to do automated testing in C. Above I meant "Can
> > I mock i C". It sounds like on a very large system, the only way is to
> > test all the way through which your example does. So there is no way
> > to mock out a subsystem or interface to a DSP or something like that?[/color]
>
> There might be, I don't know. But the point of my last
> reply was that this newsgroup is not the place to ask.
> Did you read the 'welcome message' whose link I cited?
>[color=green]
> > I am just trying to find out if we have to switch to C++ to do this
> > type of work.[/color][/color]
I'm not convinced that this *is* an off-topic question. It appears
to be something along the lines of "what facilities, if any, does
the C language provide to generate a 'mock' implementation of an
interface"? That's a question about what the C language contains,
and as such is topical.
Unfortunately for the OP, the answer is "none in particular". It
is certainly possible to create a dummy implementation in C, but
the language makes no special provisions for it.
The relevance of the comparison to C++ is not clear to me, but I
assume the OP is referring, eliptically, to some feature of C++
which is useful in this task. Nothing immediately springs to my
mind, but unless the same, or an equivalent, feature exists in C,
that *would* be off-topic here.
--
Michael Wojcik
michael.wojcik@microfocus.com
There are some, who do not understand true enjoyment, will tell you that
rules spoil convivial meetings, and that a merry company becomes a dull
committee as soon as it is called a club. Do not believe them: the
precedents are all against them. -- Arthur Ransome