test_write_format_xar_empty.c (302408) | test_write_format_xar_empty.c (311041) |
---|---|
1/*- 2 * Copyright (c) 2010-2011 Michihiro NAKAJIMA 3 * Copyright (c) 2008 Anselm Strauss 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 101 unchanged lines hidden (view full) --- 110 archive_entry_set_mode(ae, S_IFDIR | 0755); 111 assertEqualIntA(a, ARCHIVE_OK, archive_write_header(a, ae)); 112 archive_entry_free(ae); 113 114 /* Close out the archive without writing anything. */ 115 assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a)); 116 assertEqualInt(ARCHIVE_OK, archive_write_free(a)); 117 | 1/*- 2 * Copyright (c) 2010-2011 Michihiro NAKAJIMA 3 * Copyright (c) 2008 Anselm Strauss 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 101 unchanged lines hidden (view full) --- 110 archive_entry_set_mode(ae, S_IFDIR | 0755); 111 assertEqualIntA(a, ARCHIVE_OK, archive_write_header(a, ae)); 112 archive_entry_free(ae); 113 114 /* Close out the archive without writing anything. */ 115 assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a)); 116 assertEqualInt(ARCHIVE_OK, archive_write_free(a)); 117 |
118 /* Verify the correct format for an empy Xar archive. */ | 118 /* Verify the correct format for an empty Xar archive. */ |
119 assertEqualInt(used, 0); 120} | 119 assertEqualInt(used, 0); 120} |