about summary refs log tree commit diff
path: root/util.h
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-12-07 00:17:09 +0000
committerHeikki Kallasjoki <fis+github@zem.fi>2018-12-12 19:10:51 +0000
commit8569c2c85bec19daa36e013448399c42cf75a257 (patch)
tree7444488e4e5ae5c98f575a2eafd522c6427ffbdf /util.h
parentd03dea4d7dbfb62ed0c3c21cdd9ad350f0526432 (diff)
downloadnano-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.h5
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_