[thin_check] Add functional tests for --fix-metadata-leaks

This commit is contained in:
Ming-Hung Tsai 2020-07-21 22:47:59 +08:00
parent 1932c243dd
commit 80965944c6

View File

@ -145,6 +145,11 @@
(with-valid-metadata (md) (with-valid-metadata (md)
(run-ok (thin-check "--clear-needs-check-flag" md)))) (run-ok (thin-check "--clear-needs-check-flag" md))))
(define-scenario (thin-check fix-metadata-leaks)
"Accepts --fix-metadata-leaks"
(with-valid-metadata (md)
(run-ok (thin-check "--fix-metadata-leaks" md))))
(define-scenario (thin-check tiny-metadata) (define-scenario (thin-check tiny-metadata)
"Prints helpful message in case tiny metadata given" "Prints helpful message in case tiny metadata given"
(with-temp-file-sized ((md "thin.bin" 1024)) (with-temp-file-sized ((md "thin.bin" 1024))