testing/testcase: ignore gfortran.so in ldd check

the rpath we set in LDFLAGS is not honored here, but we can ignore this
as rpath is needed on executables and not important on shared objects.

libgfortran.so is a shared object that happens to be executable, so it
appears in our ldd check, but we are not executing it directly so it
should be OK.
12 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds