14 lines · python
1# Check that we route argv[0] as it was written, instead of the resolved2# path. This is important for some tools, in particular '[' which at least on OS3# X only recognizes that it is in '['-mode when its argv[0] is exactly4# '['. Otherwise it will refuse to accept the trailing closing bracket.5#6# This test is not supported on AIX since `[` is only available as a shell builtin7# and is not installed under PATH by default.8# UNSUPPORTED: system-aix9#10# RUN: %{lit} -v %{inputs}/shtest-format-argv0 | FileCheck %s11 12# CHECK: -- Testing:13# CHECK: PASS: shtest-format-argv0 :: argv0.txt14