SAFE_MACROS: Add SAFE_GETPRIORITY()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/include/tst_safe_macros.h b/include/tst_safe_macros.h
index d1519f9..59cba1a 100644
--- a/include/tst_safe_macros.h
+++ b/include/tst_safe_macros.h
@@ -433,4 +433,8 @@
 	         "execlp(%s, %s, ...) failed", file, arg); \
 	} while (0)
 
+int safe_getpriority(const char *file, const int lineno, int which, id_t who);
+#define SAFE_GETPRIORITY(which, who) \
+	safe_getpriority(__FILE__, __LINE__, (which), (who))
+
 #endif /* SAFE_MACROS_H__ */