Files
wget2/tests/test--post-file.c
2017-02-28 15:31:30 +01:00

49 lines
1.2 KiB
C

/*
* Copyright(c) 2013 Tim Ruehsen
* Copyright(c) 2015-2016 Free Software Foundation, Inc.
*
* This file is part of libwget.
*
* Libwget is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Libwget is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libwget. If not, see <https://www.gnu.org/licenses/>.
*
*
* Testing Wget
*
* Changelog
* 15.07.2013 Tim Ruehsen created
*
*/
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h> // exit()
#include "libtest.h"
int main(void)
{
// functions won't come back if an error occurs
wget_test_start_server(0);
// test-i
wget_test(
WGET_TEST_OPTIONS, "-d --post-file=nofile",
WGET_TEST_REQUEST_URL, "",
WGET_TEST_EXPECTED_ERROR_CODE, 3, // fails with older Wget (<= 1.14)
0);
exit(0);
}