perf/fsmonitor: use test_must_be_empty helper

Simplify test and make error messages more clear here. Per feedback from Junio in 33226af42b (t/perf/fsmonitor: improve error message if typoing hook name, 2020-10-26) Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nipunn Koorapati committed Nov 25, 2020 at 22:11 UTC 36fa907d7a10c9c9c22009640ab9750adc04230d
1 file changed +1 -2
t/perf/p7519-fsmonitor.sh
+1 -2
@@ -129,8 +129,7 @@ setup_for_fsmonitor() {
129
130 git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
131 git update-index --fsmonitor 2>error &&
132 - cat error &&
133 - [ ! -s error ] # ensure no silent error
132 + test_must_be_empty error # ensure no silent error
133 }
134
135 test_perf_w_drop_caches () {