llvm-capstone/flang/test
Rainer Orth 0535fab237 [Flang][test] Don't set PATH in flang/test/Semantics/common.sh
Currently, many `Flang :: Semantics` tests FAIL on Solaris.  The failure
mode is always the same:

  actual at 67: Name in ALLOCATE statement must be a variable name
  expect at 67: ERROR: Name in ALLOCATE statement must be a variable name

It turns out the issue is twofold here:

- The awk script embedded in `flang/test/Semantics/common.sh` uses a string
  value for `FS`, which isn't supported by traditional awk as documented in
  the GNU autoconf manual.

- Even though /usr/gnu/bin (with gawk installed as awk) is in my build
  environment's `PATH`, still /bin/awk is used

Although the proper fix would probably be to avoid the unportability, it's
easy to work around it for now.  `common.sh` above is the only script in
the whole tree that for unknown reasons overrides `PATH` to
`/usr/bin:/bin`, unnecessarily creating this mess in the first place.  Just
removing that setting easily avoids the issue.

Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D78550
2020-04-21 14:32:57 +02:00
..
Driver [flang] Port all remaining regression tests to lit 2020-03-13 11:58:11 +00:00
Evaluate [flang] Added CMakeLists changes, moved config and made test scripts compatible. 2020-03-13 13:54:24 +00:00
Fir [flang] Upstream patch to enable the fir-ops test. bug 45487 2020-04-14 10:02:04 -07:00
Lower [flang] Port all remaining regression tests to lit 2020-03-13 11:58:11 +00:00
Preprocessing [flang] Added CMakeLists changes, moved config and made test scripts compatible. 2020-03-13 13:54:24 +00:00
Semantics [Flang][test] Don't set PATH in flang/test/Semantics/common.sh 2020-04-21 14:32:57 +02:00
CMakeLists.txt Add missing dependencies on the flang test target 2020-04-13 18:23:01 +00:00
lit.cfg.py [flang] A rework of the cmake build components for in and out of tree builds. 2020-03-26 18:17:04 +00:00
lit.site.cfg.py.in [flang] Added CMakeLists changes, moved config and made test scripts compatible. 2020-03-13 13:54:24 +00:00