From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Tue, 30 Apr 2019 16:46:20 +0200 Subject: [LTP] TST_BRK_SUPPORTS_ONLY_TCONF_TBROK() error message In-Reply-To: <20190430144346.GA16914@dell5510> References: <20190430144346.GA16914@dell5510> Message-ID: <20190430144620.GA17822@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Jan, > your commit 0738e3753 ("lib: build check parameters for tst_brk()") added check > for invalid types. I guess we didn't find a way how to print meaningful error > message e.g. "tst_brk(): invalid type, please use TBROK/TCONF/TFAIL" as Xiao > suggested [1]. Because error message on tst_brk(TINFO, "foo") is a bit > confusing: At least on gcc 8.3. > ../../../../include/tst_common.h:69:25: error: size of unnamed array is negative > do { ((void)sizeof(char[1 - 2 * !!(condition)])); } while (0) Kind regards, Petr