mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-23 08:40:25 +08:00
chore(ci): make lint happy
This commit is contained in:
@@ -29,7 +29,8 @@ char tstbuf[BASE16384_ENCBUFSZ];
|
|||||||
if (has_failed) { \
|
if (has_failed) { \
|
||||||
perror(reason); \
|
perror(reason); \
|
||||||
return 1; \
|
return 1; \
|
||||||
}
|
} \
|
||||||
|
fputs(reason " run successfully\n", stderr);
|
||||||
|
|
||||||
#define loop_ok(has_failed, i, reason) \
|
#define loop_ok(has_failed, i, reason) \
|
||||||
if (has_failed) { \
|
if (has_failed) { \
|
||||||
@@ -85,7 +86,8 @@ char tstbuf[BASE16384_ENCBUFSZ];
|
|||||||
fp = fopen(TEST_INPUT_FILENAME, "wb"); \
|
fp = fopen(TEST_INPUT_FILENAME, "wb"); \
|
||||||
ok(!fp, "fopen"); \
|
ok(!fp, "fopen"); \
|
||||||
ok(fwrite(encbuf, TEST_SIZE, 1, fp) != 1, "fwrite"); \
|
ok(fwrite(encbuf, TEST_SIZE, 1, fp) != 1, "fwrite"); \
|
||||||
ok(fclose(fp), "fclose");
|
ok(fclose(fp), "fclose"); \
|
||||||
|
fputs("input file created.", stderr);
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|||||||
Reference in New Issue
Block a user