build: re-enable namespace-specific tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <assert.h>
|
||||
#include <fx/compress/compressor.h>
|
||||
#include <fx/compress/zstd.h>
|
||||
#include <fx/core/ringbuffer.h>
|
||||
#include <fx/compression/compressor.h>
|
||||
#include <fx/compression/zstd.h>
|
||||
#include <fx/ringbuffer.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -12,8 +12,10 @@ int refill_input_buffer(FILE *fp, fx_ringbuffer *dest)
|
||||
while (1) {
|
||||
void *buf;
|
||||
size_t capacity;
|
||||
fx_status status
|
||||
= fx_ringbuffer_open_write_buffer(dest, &buf, &capacity);
|
||||
fx_status status = fx_ringbuffer_open_write_buffer(
|
||||
dest,
|
||||
&buf,
|
||||
&capacity);
|
||||
if (status == FX_ERR_NO_SPACE) {
|
||||
break;
|
||||
}
|
||||
@@ -43,8 +45,10 @@ int flush_output_buffer(FILE *fp, fx_ringbuffer *src)
|
||||
while (1) {
|
||||
const void *buf;
|
||||
size_t capacity;
|
||||
fx_status status
|
||||
= fx_ringbuffer_open_read_buffer(src, &buf, &capacity);
|
||||
fx_status status = fx_ringbuffer_open_read_buffer(
|
||||
src,
|
||||
&buf,
|
||||
&capacity);
|
||||
if (status == FX_ERR_NO_DATA) {
|
||||
break;
|
||||
}
|
||||
@@ -68,7 +72,9 @@ int flush_output_buffer(FILE *fp, fx_ringbuffer *src)
|
||||
int main(int argc, const char **argv)
|
||||
{
|
||||
if (argc < 4) {
|
||||
fprintf(stderr, "usage: %s <C/D> <inpath> <outpath>\n", argv[0]);
|
||||
fprintf(stderr,
|
||||
"usage: %s <C/D> <inpath> <outpath>\n",
|
||||
argv[0]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -101,7 +107,10 @@ int main(int argc, const char **argv)
|
||||
|
||||
size_t inbuf_size, outbuf_size;
|
||||
fx_compressor_get_buffer_size(
|
||||
compressor_type, mode, &inbuf_size, &outbuf_size);
|
||||
compressor_type,
|
||||
mode,
|
||||
&inbuf_size,
|
||||
&outbuf_size);
|
||||
|
||||
fx_ringbuffer *in = fx_ringbuffer_create(inbuf_size);
|
||||
fx_ringbuffer *out = fx_ringbuffer_create(outbuf_size);
|
||||
|
||||
Reference in New Issue
Block a user