Changeset 16616 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 22, 2008, 11:49:29 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r16587 r16616 2825 2825 pstampDataStoreRow *object; 2826 2826 2827 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string" );2827 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string" ); 2828 2828 2829 2829 if (!object) { … … 2835 2835 exit(EXIT_FAILURE); 2836 2836 } 2837 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2838 psFree(object); 2839 exit(EXIT_FAILURE); 2840 } 2841 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) { 2842 psFree(object); 2843 exit(EXIT_FAILURE); 2844 } 2845 if (strncmp(object->outProduct, "a string", MAX_STRING_LENGTH)) { 2846 psFree(object); 2847 exit(EXIT_FAILURE); 2848 } 2837 2849 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2838 2850 psFree(object); 2839 2851 exit(EXIT_FAILURE); 2840 2852 } 2841 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) { 2853 2854 psFree(object); 2855 } 2856 2857 { 2858 pstampRequestRow *object; 2859 2860 object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string" ); 2861 2862 if (!object) { 2863 exit(EXIT_FAILURE); 2864 } 2865 2866 if (!object->req_id == -64) { 2867 psFree(object); 2868 exit(EXIT_FAILURE); 2869 } 2870 if (!object->ds_id == -64) { 2842 2871 psFree(object); 2843 2872 exit(EXIT_FAILURE); … … 2847 2876 exit(EXIT_FAILURE); 2848 2877 } 2849 2850 psFree(object); 2851 } 2852 2853 { 2854 pstampRequestRow *object; 2855 2856 object = pstampRequestRowAlloc(-64, -64, "a string", "a string" ); 2857 2858 if (!object) { 2859 exit(EXIT_FAILURE); 2860 } 2861 2862 if (!object->req_id == -64) { 2863 psFree(object); 2864 exit(EXIT_FAILURE); 2865 } 2866 if (!object->ds_id == -64) { 2867 psFree(object); 2868 exit(EXIT_FAILURE); 2869 } 2870 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2878 if (strncmp(object->outFileset, "a string", MAX_STRING_LENGTH)) { 2871 2879 psFree(object); 2872 2880 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
