summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-test.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-12-15 00:20:56 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-12-15 00:20:56 +0000
commit1371320742140dc48e1834c6a32d91147fff13de (patch)
treedc7e7585dac5989030d43fa08ac8f2601ca3a22d /xdelta3/xdelta3-test.h
parentd9111360bb5da1076924d1762fffb5dc90e4f10c (diff)
Compile on OS X, better implementation of UNALIGNED_OK=0 small checksum.
Diffstat (limited to 'xdelta3/xdelta3-test.h')
-rw-r--r--xdelta3/xdelta3-test.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/xdelta3/xdelta3-test.h b/xdelta3/xdelta3-test.h
index 3b737e7..9149348 100644
--- a/xdelta3/xdelta3-test.h
+++ b/xdelta3/xdelta3-test.h
@@ -1764,7 +1764,7 @@ test_recode_command2 (xd3_stream *stream, int has_source,
1764 int recoded_apphead = change_apphead ? !has_apphead : has_apphead; 1764 int recoded_apphead = change_apphead ? !has_apphead : has_apphead;
1765 int recoded_secondary = change_secondary ? !has_secondary : has_secondary; 1765 int recoded_secondary = change_secondary ? !has_secondary : has_secondary;
1766 1766
1767 char ecmd[TESTBUFSIZE], rcmd[TESTBUFSIZE], dcmd[TESTBUFSIZE]; 1767 char ecmd[TESTBUFSIZE], recmd[TESTBUFSIZE], dcmd[TESTBUFSIZE];
1768 xoff_t tsize, ssize; 1768 xoff_t tsize, ssize;
1769 int ret; 1769 int ret;
1770 1770
@@ -1800,18 +1800,18 @@ test_recode_command2 (xd3_stream *stream, int has_source,
1800 } 1800 }
1801 1801
1802 /* Now recode */ 1802 /* Now recode */
1803 sprintf (rcmd, "%s recode %s -f ", program_name, test_softcfg_str); 1803 sprintf (recmd, "%s recode %s -f ", program_name, test_softcfg_str);
1804 strcat (rcmd, recoded_adler32 ? "" : "-n "); 1804 strcat (recmd, recoded_adler32 ? "" : "-n ");
1805 strcat (rcmd, !change_apphead ? "" : 1805 strcat (recmd, !change_apphead ? "" :
1806 (recoded_apphead ? "-A=recode_apphead " : "-A= ")); 1806 (recoded_apphead ? "-A=recode_apphead " : "-A= "));
1807 strcat (rcmd, recoded_secondary ? "-S djw " : "-S none "); 1807 strcat (recmd, recoded_secondary ? "-S djw " : "-S none ");
1808 strcat (rcmd, TEST_DELTA_FILE); 1808 strcat (recmd, TEST_DELTA_FILE);
1809 strcat (rcmd, " "); 1809 strcat (recmd, " ");
1810 strcat (rcmd, TEST_COPY_FILE); 1810 strcat (recmd, TEST_COPY_FILE);
1811 1811
1812 if ((ret = system (rcmd)) != 0) 1812 if ((ret = system (recmd)) != 0)
1813 { 1813 {
1814 DP(RINT "xdelta3: recode command: %s\n", rcmd); 1814 DP(RINT "xdelta3: recode command: %s\n", recmd);
1815 stream->msg = "recode cmd failed"; 1815 stream->msg = "recode cmd failed";
1816 return XD3_INTERNAL; 1816 return XD3_INTERNAL;
1817 } 1817 }