summaryrefslogtreecommitdiffstatshomepage
path: root/test/tst-fail.sh
blob: 3c12ee3fca8cc60e99fcd77b909b3cfe732e8deb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
test_run() {
    cat > "$test_root_dir/$test_file" <<'EOF'
test_should_fail=1

test_run() {
    log "I'm a failure"
    false
}
EOF

    local output
    output="$( test_run_harness )"

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