NetBSD/usr.bin/make/unit-tests/varmod-order.exp
rillig 94b00ca35c make(1): move tests for the :Ox modifier into separate file
The test has been extended by ensuring that the shuffled words are still
the same.  Comparing two shuffled lists is probabilistic, but comparing
their sorted results is not, therefore that's completely sensible to do.

When writing this test, by coincidence I discovered how to generate the
"Undefined variable" error message.  Unfortunately, the error message is
wrong since the variable NUMBERS is defined at that point.  In summary,
that error message is shown when it shouldn't, and when it should it is
not shown.  Still, I'm glad that I finally found it.
2020-08-16 20:43:01 +00:00

8 lines
302 B
Plaintext

make: Bad modifier `:OX' for NUMBERS
make: "varmod-order.mk" line 13: Undefined variable "${NUMBERS:OX"
make: Bad modifier `:OxXX' for NUMBERS
make: "varmod-order.mk" line 16: Undefined variable "${NUMBERS:Ox"
make: Fatal errors encountered -- cannot continue
make: stopped in unit-tests
exit status 1