From: Tim Kientzle Date: Sat, 10 Apr 2010 20:42:21 +0000 (-0400) Subject: Simplify by using assertMakeFile() X-Git-Tag: v3.0.0a~1128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c3bfcb5e264846c8c9fe3e8ef5318134a1fd22d;p=thirdparty%2Flibarchive.git Simplify by using assertMakeFile() SVN-Revision: 2220 --- diff --git a/tar/test/test_option_exclude.c b/tar/test/test_option_exclude.c index ab3bedded..47a759f5b 100644 --- a/tar/test/test_option_exclude.c +++ b/tar/test/test_option_exclude.c @@ -27,19 +27,10 @@ __FBSDID("$FreeBSD$"); DEFINE_TEST(test_option_exclude) { - FILE *f; int r; - f = fopen("file1", "w"); - assert(f != NULL); - fprintf(f, "file1"); - fclose(f); - - f = fopen("file2", "w"); - assert(f != NULL); - fprintf(f, "file2"); - fclose(f); - + assertMakeFile("file1", 0644, "file1"); + assertMakeFile("file2", 0644, "file2"); assertEqualInt(0, systemf("%s -cf archive.tar file1 file2", testprog)); /*