mirror of
https://github.com/curl/curl.git
synced 2026-04-18 10:21:46 +03:00
To simplify dependencies, and sync tunits and units builds further. `curlcheck.h` already depended on logic implemented within libtests: it referenced a global variable (`unitfail`) defined in `first.c` and declared in `test.h`. Also: - rename to `unitcheck.h` to indicate it's meant for unit tests. - make `unitcheck.h` include `first.h` instead of `test.h`. This brings header use closer to libtests. It also includes `curlx/curlx.h` for all unit tests by default now. - move `unitfail` declaration from `test.h` to `first.h`. To match its definition in `first.c`. - drop now redundant per-test curlx header includes. Closes #17868
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/***************************************************************************
|
|
* _ _ ____ _
|
|
* Project ___| | | | _ \| |
|
|
* / __| | | | |_) | |
|
|
* | (__| |_| | _ <| |___
|
|
* \___|\___/|_| \_\_____|
|
|
*
|
|
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
*
|
|
* This software is licensed as described in the file COPYING, which
|
|
* you should have received as part of this distribution. The terms
|
|
* are also available at https://curl.se/docs/copyright.html.
|
|
*
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
*
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
* KIND, either express or implied.
|
|
*
|
|
* SPDX-License-Identifier: curl
|
|
*
|
|
***************************************************************************/
|
|
#include "unitcheck.h"
|
|
|
|
#include "memdebug.h"
|
|
|
|
static CURLcode test_unit1330(char *arg)
|
|
{
|
|
UNITTEST_BEGIN_SIMPLE
|
|
|
|
char *ptr = malloc(1330);
|
|
Curl_safefree(ptr);
|
|
|
|
UNITTEST_END_SIMPLE
|
|
}
|