The `Driver/pass-plugin-not-found.f90` test `FAIL`s on Solaris since part of the error message differs from what the test expects: Solaris has error: unable to load plugin 'X.Y': 'Could not load library 'X.Y': ld.so.1: flang-new: X.Y: open failed: No such file or directory' while the test expects error: unable to load plugin 'X.Y': 'Could not load library 'X.Y': X.Y: cannot open shared object file: No such file or directory' The last part is emitted by the system `dlerror` and is thus unportable. Hopefully the error text itself is the same everywhere. The following patch adjusts the expected message accordingly. Tested on `x86_64-pc-linux-gnu` and `amd64-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D138663
10 lines
495 B
Fortran
10 lines
495 B
Fortran
! Check the correct error diagnostic is reported when a pass plugin shared object isn't found
|
|
|
|
! REQUIRES: plugins, shell
|
|
|
|
! RUN: not %flang -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
! RUN: not %flang_fc1 -emit-llvm -o /dev/null -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
|
|
! The exact wording of the error message depends on the system dlerror.
|
|
! ERROR: error: unable to load plugin 'X.Y': 'Could not load library 'X.Y': {{.*}}: No such file or directory'
|