Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-12

gettext fix and test case

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis
to Felipe Monteiro de Carvalho: I tryed to create a test case based on some previous discussion and the examples:…

Op dinsdag 02-12-2008 om 14:03 uur [tijdzone -0200], schreef Felipe Monteiro de Carvalho:

Show quoted text 8 lines
Hello, I tryed to create a test case based on some previous discussion and the examples: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=12290 Why don't the test cases have "program ..." ?

Why should they? I think that those people writing those tests were lazy.

And what does the numbering mean?

Well, if the highest number is 342, and you want to add a test, call it 343.

Joost.

Reply by email

Jonas Maebe
to Felipe Monteiro de Carvalho: I tryed to create a test case based on some previous discussion and the examples:…
Felipe Monteiro de Carvalho wrote 6 lines
I tryed to create a test case based on some previous discussion and the examples: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=12290 Why don't the test cases have "program ..." ?

Because the "program ..." statement is optional (at least in TP/Delphi/ FPC), so most people don't bother to add it (me neither most of the time, for that matter).

And what does the numbering mean?

Nothing, it's just a sequence. You can just take the next available number for your test.

Ah, and why is it written that test cases should return 0 but none of them actually do that? Is it the standard result?

Yes.

Jonas

Reply by email

Jonas Maebe
to Felipe Monteiro de Carvalho: I tryed to create a test case based on some previous discussion and the examples:…
Felipe Monteiro de Carvalho wrote
I tryed to create a test case based on some previous discussion and the examples: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=12290

That test should be moved though. Tests in the standard test directories cannot depend on anything in the packages directory. Such tests have to be placed somewhere under tests/test/packages (and if you create new directories there, add them to the TESTPACKAGESUBDIRS variable in tests/Makefile.fpc and regenerate the Makefile -- using a newly compiled fpcmake, not one from the previous release, or otherwise it won't contain support for all targets).

Jonas

Reply by email