summaryrefslogtreecommitdiffstatshomepage
path: root/test/tst-fail.sh
blob: 8c60cf8da80717275777cc68b1b8f5b44d1c0ff1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
test_run() {
    cat > "$test_root_dir/$test_file" <<'EOF'
test_run() {
    log "I'm a failure"
    false
}
EOF

    local output=
    output="$( test_run_harness )" || true

    test_check_harness_log "$output" "$test_file | I'm a failure"
    test_check_harness_summary "$output" 0 1
}