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 ..." ?
And what does the numbering mean?
thanks,

Mailing lists / fpc-devel / 2008-12
7 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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 ..." ?
And what does the numbering mean?
thanks,
Ah, and why is it written that test cases should return 0 but none of them actually do that? Is it the standard result?
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:
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.
I tryed to create a test case based on some previous discussion and the examples:…
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
Op dinsdag 02-12-2008 om 14:03 uur [tijdzone -0200], schreef Felipe Monteiro de Carvalho:…
Joost van der Sluis wroteWhy should they? I think that those people writing those tests were lazy.
well, usually I expect my pascal source to look like a pascal source, which includes starting with program or unit. I assume that program is automatically added when compiling somehow.
I tryed to create a test case based on some previous discussion and the examples:…
Felipe Monteiro de Carvalho wroteI 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
Done, except for regenerating the makefile