Skip to content

Commit 364f98b

Browse files
committed
patch env.sh: seperate testing of -a and -argv0 makes more sence
1 parent dfb629b commit 364f98b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/tests/env/env.sh b/tests/env/env.sh
2+
index d8f520299..29e90aaba 100755
3+
--- a/tests/env/env.sh
4+
+++ b/tests/env/env.sh
5+
@@ -165,7 +165,8 @@ test "$exp" = "$got" || fail=1
6+
7+
# Verify argv0 overriding
8+
for arg in 'argv0' ''; do
9+
-env -v -a short --argv0=$arg true 2>err || fail=1
10+
+env -v --argv0=$arg true 2>err || fail=1
11+
+env -v -a $arg true 2>err || fail=1
12+
cat <<EOF >err_exp || framework_failure_
13+
argv0: '$arg'
14+
executing: true

0 commit comments

Comments
 (0)