File: Fail.sh

package info (click to toggle)
jtreg 5.1-b01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,432 kB
  • sloc: java: 29,218; xml: 729; sh: 665; makefile: 245
file content (27 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# @test
# @summary Failed: Execution failed: exit code 1

# @test
# @summary Failed: Execution failed: exit code 1
# @run shell Fail.sh

# @test
# @summary Failed: Execution failed: exit code 1
# @run shell/timeout=3 Fail.sh

# @test
# @summary Passed: Execution failed as exptected
# @run shell/fail Fail.sh

# @test
# @summary Passed: Execution failed as expected
# @run shell/fail/timeout=9 Fail.sh

# @test
# @summary Passed: Execution failed as expected
# @run shell/fail Fail.sh arg0 arg1 arg2 arg3

echo "I should fail"
echo "My args: " $@

exit 1