summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_acreate.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-20 15:45:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-20 15:45:13 (GMT)
commiteec442a8f6d26f66eda16bc144d396e90dd06516 (patch)
tree8dcf9d66af2d2dd83a71fecfdf704e18814462e4 /test/ttsafe_acreate.c
parent20c9e7bc0600d4662f1a465dd696e08b9412d89e (diff)
downloadhdf5-eec442a8f6d26f66eda16bc144d396e90dd06516.zip
hdf5-eec442a8f6d26f66eda16bc144d396e90dd06516.tar.gz
hdf5-eec442a8f6d26f66eda16bc144d396e90dd06516.tar.bz2
[svn-r11276] Purpose:
Code cleanup/bug fix Description: Add missing files to manifest Remove C++ style single-line comment from recent checkin and also re-indent in a few places. Platforms tested: FreeBSD 4.11 (sleipnir) w/thread-safe Not configured w/h5committest
Diffstat (limited to 'test/ttsafe_acreate.c')
-rw-r--r--test/ttsafe_acreate.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/ttsafe_acreate.c b/test/ttsafe_acreate.c
index f4f418b..1ab54a8 100644
--- a/test/ttsafe_acreate.c
+++ b/test/ttsafe_acreate.c
@@ -87,12 +87,12 @@ void tts_acreate(void)
* creation plist and default file access plist
*/
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- assert(file>=0);
+ assert(file>=0);
/* create a simple dataspace for the dataset */
dimsf[0] = 1;
dataspace = H5Screate_simple(1, dimsf, NULL);
- assert(dataspace>=0);
+ assert(dataspace>=0);
/* define datatype for the data using native little endian integers */
datatype = H5Tcopy(H5T_NATIVE_INT);
@@ -100,13 +100,12 @@ void tts_acreate(void)
/* create a new dataset within the file */
dataset = H5Dcreate(file, DATASETNAME, datatype, dataspace, H5P_DEFAULT);
- assert(dataset>=0);
+ assert(dataset>=0);
/* initialize data for dataset and write value to dataset */
data = NUM_THREADS;
- ret=H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, &data);
- assert(ret>=0);
+ ret=H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &data);
+ assert(ret>=0);
/*
* Simultaneously create a large number of attributes to be associated
@@ -119,13 +118,13 @@ void tts_acreate(void)
attrib_data->dataspace = dataspace;
attrib_data->current_index = i;
ret=pthread_create(&threads[i], NULL, tts_acreate_thread, attrib_data);
- assert(ret==0);
+ assert(ret==0);
}
for (i = 0; i < NUM_THREADS; i++) {
ret=pthread_join(threads[i], NULL);
- assert(ret==0);
- }
+ assert(ret==0);
+ }
/* verify the correctness of the test */