minor test cleanup

This commit is contained in:
Ed Hartnett 2018-02-16 09:00:15 -07:00
parent b0a8d4ee30
commit ca5f314fc0
5 changed files with 4 additions and 38 deletions

View File

@ -4,7 +4,6 @@
* https://github.com/Unidata/netcdf-c/issues/113.
*/
#include <stdio.h>
#include <config.h>
#include <unistd.h>
#include <nc_tests.h>

View File

@ -7,10 +7,8 @@
* Test contributed by Jeff Whitaker
*/
#include <string.h>
#include <netcdf.h>
#include <stdio.h>
#include <nc_tests.h>
#include <string.h>
#include "nc_logging.h"
#define FILE_NAME_NC "tst_h5_endians.nc"

View File

@ -1,33 +0,0 @@
/* This is a quickie tester for netcdf-4.
$Id: tst_nc_test_file.c,v 1.7 2005/12/29 19:16:19 ed Exp $
*/
#include <tests.h>
#define FILE_NAME "../nc_test/nc_test_netcdf4.nc"
int
main()
{
int ncid;
int retval;
size_t start[1] = {0}, count[1] = {2};
ptrdiff_t stride[1] = {2};
short short_data[256];
float float_data[256];
printf("\n*** Testing with file %s\n", FILE_NAME);
/*nc_set_log_level(4);*/
printf("*** Testing whether we can open and read from it...");
if ((retval = nc_open(FILE_NAME, 0, &ncid))) ERR;
if ((retval = nc_get_vars_short(ncid, 35, start, count, stride,
short_data)) != NC_ERANGE) ERR;
if ((retval = nc_get_vars(ncid, 35, start, count, stride, short_data))) ERR;
if ((retval = nc_close(ncid))) ERR;
SUMMARIZE_ERR;
FINAL_RESULTS;
}

View File

@ -3,6 +3,7 @@
* https://github.com/Unidata/netcdf-c/issues/160
*/
#include <config.h>
#include "netcdf.h"
#include <stdio.h>

View File

@ -8,10 +8,11 @@
Tests to see if the hashmap is being properly updated.
*/
#include <config.h>
#include <netcdf.h>
#define FILENAME "tst_rehash.nc"
#include <netcdf.h>
int main()
{
int status;