The test has been failing since its introduction in r241288 ([Cocoa] Ask platform for generic font family mappings https://bugs.webkit.org/show_bug.cgi?id=187723) It seems this feature is a Mac only feature. Perhaps the test should be marked as skipped in GTK.