Symbol hiding and unit tests

bodrato at bodrato at
Tue Jul 7 08:49:00 UTC 2015


Il Lun, 6 Luglio 2015 11:46 pm, Torbjörn Granlund ha scritto:
> Unfortunately, it has now become obvious to me that symbol hiding
> conflicts with unit testing.  :-(
> This can be handled either by
> 1. hiding (much!) fewer internal symbols, or by

I agree with starting to hide some symbols.

> 2. linking each unit test to the needed PIC objects instead of the ,so
> file.
> The latter is a major task, but the dependencies could presumably be
> done with some clever scripts.

Writing a test_wrapper function is too messy?
void test_wrapper (int index, void *retval, ...)
  switch (index)
    case 1:
      *retval = toomxy...



More information about the gmp-devel mailing list