diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-07 00:17:09 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis+github@zem.fi> | 2018-12-12 19:10:51 +0000 |
commit | 8569c2c85bec19daa36e013448399c42cf75a257 (patch) | |
tree | 7444488e4e5ae5c98f575a2eafd522c6427ffbdf /util.h | |
parent | d03dea4d7dbfb62ed0c3c21cdd9ad350f0526432 (diff) | |
download | nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.gz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.xz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.zip |
Add a simple test harness and tests for the cpu collector.
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h index 9cd7f40..5049a9f 100644 --- a/util.h +++ b/util.h @@ -118,4 +118,9 @@ char *fgets_line(char *s, int size, FILE *stream); */ int write_all(int fd, const void *buf, size_t len); +#ifndef PATH +/** Macro for constructing absolute paths in release, relative paths in tests. */ +#define PATH(p) p +#endif // PATH + #endif // NANO_EXPORTER_UTIL_H_ |