From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101513 invoked by alias); 10 Jul 2017 15:18:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 101503 invoked by uid 89); 10 Jul 2017 15:18:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=HTo:U*ppluzhnikov X-HELO: relay1.mentorg.com Date: Mon, 10 Jul 2017 15:18:00 -0000 From: Joseph Myers To: Paul Pluzhnikov CC: GLIBC Devel Subject: Re: [patch] Add tests for atexit/on_exit firing order In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2017-07/txt/msg00393.txt.bz2 On Mon, 10 Jul 2017, Paul Pluzhnikov wrote: > Greetings, > > While working a on patch for bz14333, I discovered that there are no > tests for ordering of functions registered with atexit/on_exit, and in > particular the case where such function itself registers new exit > handlers. > > This patch adds such test. I am using on_exit here because it > conveniently allows passing an argument. I'd think that it would make sense to test all of atexit, on_exit, at_quick_exit this way. -- Joseph S. Myers joseph@codesourcery.com