• Kirill Smelkov's avatar
    t/tfault-run: Clear state from previous run before starting · cf92dfca
    Kirill Smelkov authored
    Otherwise, if previous test.fault failed, tfault-run fails to start, e.g.
    
        >>> test.fault
        $ make test.fault # MAKEFLAGS=-j1
        x86_64-linux-gnu-gcc -pthread -g -Wall -D_GNU_SOURCE -std=gnu99 -fplan9-extensions -Wno-declaration-after-statement -Wno-error=declaration-after-statement  -Iinclude -I3rdparty/ccan -I3rdparty/include   bigfile/tests/tfault.c lib/bug.c lib/utils.c 3rdparty/ccan/ccan/tap/tap.c  -o bigfile/tests/tfault.t
        t/tfault-run bigfile/tests/tfault.t faultr on_pagefault
        mkdir: cannot create directory ‘t/tfault-run.faultr’: File exists
        Makefile:186: recipe for target 'faultr.tfault' failed
        make: *** [faultr.tfault] Error 1
        rm bigfile/tests/tfault.t
        error   test.fault      0.433s  # 1t 1e 0f 0s
    cf92dfca
Name
Last commit
Last update
..
map-anon-alias.c Loading commit data...
map-private-dup.c Loading commit data...
page-mdup.c Loading commit data...
qemu-runlinux Loading commit data...
shm-punch-hole.c Loading commit data...
t_utils.c Loading commit data...
t_utils.h Loading commit data...
t_with-tmpfs Loading commit data...
tfault-run Loading commit data...