summaryrefslogtreecommitdiffstatshomepage
path: root/test/tst-should-fail.sh
blob: 98d22f55342939df1b619e91ecab63553b288fb9 (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" 1 0
}