From 8e12abcc0efb072226cbacb2d185c726575fa8a2 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Wed, 17 Feb 2021 20:35:02 +0100 Subject: [PATCH] Re-added fix to check tool: check fails if the recorded file contains silence only --- test/check.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/check.cc b/test/check.cc index c1f47c2..9be3f6a 100644 --- a/test/check.cc +++ b/test/check.cc @@ -74,7 +74,7 @@ int main(int argc, char* argv[]) end: //cout << "expected " << (int)curr << " byte " << (int)byte << endl; int rc = 0; - if (fl.tellp() != end) + if (first || fl.tellp() != end) { cout << "error at position: " << fl.tellp() << endl; rc = 1;