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.