From 58beb0bc9236234a697a3619c5023100a9574a59 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 5 Sep 2026 07:22:31 +0000 Subject: Full coverage of bin/main.c FossilOrigin-Name: 91deb642cded69b6c480471147004489a6072ec7c6603286aa6c0ebfc75bf030 --- tests/scripts/bad/2.sh | 2 +- tests/scripts/bad/3.sh | 2 +- tests/scripts/bad/4.aplwc | 1 + tests/scripts/bad/4.sh | 3 +++ tests/scripts/bad/5.sh | 3 +++ tests/scripts/bad/6.sh | 4 ++++ tests/scripts/bad/7.sh | 4 ++++ 7 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 tests/scripts/bad/4.aplwc create mode 100755 tests/scripts/bad/4.sh create mode 100755 tests/scripts/bad/5.sh create mode 100755 tests/scripts/bad/6.sh create mode 100755 tests/scripts/bad/7.sh (limited to 'tests/scripts/bad') diff --git a/tests/scripts/bad/2.sh b/tests/scripts/bad/2.sh index 03db180..73321be 100755 --- a/tests/scripts/bad/2.sh +++ b/tests/scripts/bad/2.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl -? +aplwc-repl -x -? diff --git a/tests/scripts/bad/3.sh b/tests/scripts/bad/3.sh index 55b2735..ff0e033 100755 --- a/tests/scripts/bad/3.sh +++ b/tests/scripts/bad/3.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl some-file-which-does-not-exist +aplwc-repl -x some-file-which-does-not-exist diff --git a/tests/scripts/bad/4.aplwc b/tests/scripts/bad/4.aplwc new file mode 100755 index 0000000..af9da70 --- /dev/null +++ b/tests/scripts/bad/4.aplwc @@ -0,0 +1 @@ +#!/usr/bin/env aplwc-repl \ No newline at end of file diff --git a/tests/scripts/bad/4.sh b/tests/scripts/bad/4.sh new file mode 100755 index 0000000..0c48eaf --- /dev/null +++ b/tests/scripts/bad/4.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +aplwc-repl -x f1 f2 diff --git a/tests/scripts/bad/5.sh b/tests/scripts/bad/5.sh new file mode 100755 index 0000000..8411e21 --- /dev/null +++ b/tests/scripts/bad/5.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +aplwc-repl -x /dev/stdin diff --git a/tests/scripts/bad/6.sh b/tests/scripts/bad/6.sh new file mode 100755 index 0000000..2d9a94c --- /dev/null +++ b/tests/scripts/bad/6.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +export APLWC_SIMULATE_FAILURE_PRINT_COUNT=1 +aplwc-repl -x 3>&- diff --git a/tests/scripts/bad/7.sh b/tests/scripts/bad/7.sh new file mode 100755 index 0000000..189a5f0 --- /dev/null +++ b/tests/scripts/bad/7.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +export APLWC_SIMULATE_FAILURE_AT=100 +aplwc-repl -x /dev/stdin -- cgit v1.2.3