Deleted Added
full compact
test_option_b64encode.c (302408) test_option_b64encode.c (318482)
1/*-
2 * Copyright (c) 2003-2007 Tim Kientzle
3 * Copyright (c) 2012 Michihiro NAKAJIMA
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:

--- 28 unchanged lines hidden (view full) ---

37 /* Archive it with compress compression and uuencode. */
38 assertEqualInt(0,
39 systemf("echo f | %s -o -Z --b64encode >archive.out 2>archive.err",
40 testprog));
41 /* Check that the archive file has an uuencode signature. */
42 p = slurpfile(&s, "archive.out");
43 assert(s > 2);
44 assertEqualMem(p, "begin-base64 644", 16);
1/*-
2 * Copyright (c) 2003-2007 Tim Kientzle
3 * Copyright (c) 2012 Michihiro NAKAJIMA
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:

--- 28 unchanged lines hidden (view full) ---

37 /* Archive it with compress compression and uuencode. */
38 assertEqualInt(0,
39 systemf("echo f | %s -o -Z --b64encode >archive.out 2>archive.err",
40 testprog));
41 /* Check that the archive file has an uuencode signature. */
42 p = slurpfile(&s, "archive.out");
43 assert(s > 2);
44 assertEqualMem(p, "begin-base64 644", 16);
45 free(p);
45
46 /* Archive it with uuencode only. */
47 assertEqualInt(0,
48 systemf("echo f | %s -o --b64encode >archive.out 2>archive.err",
49 testprog));
50 /* Check that the archive file has an uuencode signature. */
51 p = slurpfile(&s, "archive.out");
52 assert(s > 2);
53 assertEqualMem(p, "begin-base64 644", 16);
46
47 /* Archive it with uuencode only. */
48 assertEqualInt(0,
49 systemf("echo f | %s -o --b64encode >archive.out 2>archive.err",
50 testprog));
51 /* Check that the archive file has an uuencode signature. */
52 p = slurpfile(&s, "archive.out");
53 assert(s > 2);
54 assertEqualMem(p, "begin-base64 644", 16);
55 free(p);
54}
56}