From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Mon, 23 May 2016 17:43:53 +0200 Subject: [LTP] Fwd: pwrite04 ltp bug? In-Reply-To: References: <20160523123928.GE22559@rei.lan> Message-ID: <20160523154353.GE25488@rei.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > > This does not look right... > > OK, I was just copying the file size test > loop above the "Finally" comment, I assumed > that cleanup exited. As it is, if you fail the > file size loop I edited, you'll get both a FAIL > and a PASS... > > Maybe in all the cases that resolve to FAIL > we should goto some kind of out-fail: ? The best solution would to move the actual test to a separate function called from the for() loop in main(), then we can just do return in case of failure. -- Cyril Hrubis chrubis@suse.cz