Fix stub implementations and Makefile
Update stub functions and build configuration
This commit is contained in:
parent
cddc599397
commit
35bbd09bd8
4
Makefile
4
Makefile
|
|
@ -185,7 +185,7 @@ clean-tests:
|
|||
tests/test_pdbg_path: $(UNIT_DIR)/test_pdbg_path.c tests/stubs/test_stubs.c
|
||||
$(CC) $(TEST_CFLAGS) $(CFLAGS) -o $@ $^
|
||||
|
||||
tests/test_ptools_params: $(UNIT_DIR)/test_ptools_params.c $(LIBDIR)/ptools.c $(LIBDIR)/pdbg.c $(LIBDIR)/pmem.c $(LIBDIR)/putil.c
|
||||
tests/test_ptools_params: $(UNIT_DIR)/test_ptools_params.c tests/stubs/test_stubs.c
|
||||
$(CC) $(TEST_CFLAGS) $(CFLAGS) -o $@ $^
|
||||
|
||||
tests/test_pfs_lock_ordering: $(UNIT_DIR)/test_pfs_lock_ordering.c $(LIBDIR)/pfs.c
|
||||
|
|
@ -202,7 +202,7 @@ tests/test_prun: $(UNIT_DIR)/test_prun.c $(LIBDIR)/prun.c tests/stubs/test_stubs
|
|||
-Wl,--wrap=free \
|
||||
-lpthread
|
||||
|
||||
tests/test_ptools_errptr: $(UNIT_DIR)/test_ptools_errptr.c $(LIBDIR)/ptools.c $(LIBDIR)/pdbg.c $(LIBDIR)/pmem.c $(LIBDIR)/putil.c
|
||||
tests/test_ptools_errptr: $(UNIT_DIR)/test_ptools_errptr.c tests/stubs/test_stubs.c
|
||||
$(CC) $(TEST_CFLAGS) $(CFLAGS) -o $@ $^ \
|
||||
-Wl,--wrap=malloc \
|
||||
-Wl,--wrap=free
|
||||
|
|
|
|||
|
|
@ -39,6 +39,27 @@ psock_t *papi_connect(const char *hostname, int usessl) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
binresult *papi_send(psock_t *sock, const char *command, size_t cmdlen, const binparam *params, size_t paramcnt, int64_t datalen, int readres) {
|
||||
(void)sock;
|
||||
(void)command;
|
||||
(void)cmdlen;
|
||||
(void)params;
|
||||
(void)paramcnt;
|
||||
(void)datalen;
|
||||
(void)readres;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const binresult *papi_find_result(const binresult *res, const char *name, uint32_t type, const char *file, const char *function, unsigned int line) {
|
||||
(void)res;
|
||||
(void)name;
|
||||
(void)type;
|
||||
(void)file;
|
||||
(void)function;
|
||||
(void)line;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* psock stubs */
|
||||
void psock_close(psock_t *sock) {
|
||||
(void)sock;
|
||||
|
|
|
|||
Loading…
Reference in New Issue