← Back to team overview

randgen team mailing list archive

Systematic problem with the $data section of the ZZ files

 

Hello,

There was a systematic problem with the $data section in numerous ZZ files, very likely because they were all copied from one faulty initial example or the documentation.

The syntax should be:

$data = { .... }

and not

$data => { ... }

Unfortunately both are valid Perl so no warning was given. The result is that the $data section was not taken under consideration at all, and data types were populated with default values, as defined in GenTest::App::Gendata.pm.

I have now fixed the docs and bulk-fixed all affected ZZ files. It is possible that after the fix, any tests that use those ZZ files will start behaving differently and/or detect the bugs they were meant to detect but did not do so previously.

Apologies for any inconvenience this may have caused you. I will try to figure out a way to detect similar situations in the future.

Philip Stoev