On Tue, Feb 17, 2015, at 10:27 AM, Axel Hecht wrote:
> Hi,
> 
> I'd like to write tests to validate my assumptions around what's an error
> and what's a warning for localized values going into
> nsTextFormatter::smprintf.
> 
> Basically, the tests would start with a reference string, and then a more
> or less random modification of that string, and a check if the segments
> are in, or if it crashes [1].
> 
> So I'll need a .cpp core, and a wrapper that feeds it data and checks the
> output.
> 
> Any suggestions on how to do that "right"?

When you say "crashes" do you mean an actual program crash? If so,
shouldn't we just be fixing these in nsTextFormatter? If you don't need
to monitor actual crashes then a Gtest should work just fine here.

-Ted
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to