chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v239: Do not test ioprio_class_from_to_string()
[elogind.git]
/
src
/
test
/
test-process-util.c
diff --git
a/src/test/test-process-util.c
b/src/test/test-process-util.c
index bbaf3f92514deaa86f119f53e06d93bbad2b626c..f19875daea0d1820aee468f7e05f766eb2b1eb4b 100644
(file)
--- a/
src/test/test-process-util.c
+++ b/
src/test/test-process-util.c
@@
-564,6
+564,7
@@
static void test_pid_to_ptr(void) {
#endif
}
#endif
}
+#if 0 /// UNNEEDED by elogind
static void test_ioprio_class_from_to_string_one(const char *val, int expected) {
assert_se(ioprio_class_from_string(val) == expected);
if (expected >= 0) {
static void test_ioprio_class_from_to_string_one(const char *val, int expected) {
assert_se(ioprio_class_from_string(val) == expected);
if (expected >= 0) {
@@
-589,6
+590,7
@@
static void test_ioprio_class_from_to_string(void) {
test_ioprio_class_from_to_string_one("9", -1);
test_ioprio_class_from_to_string_one("-1", -1);
}
test_ioprio_class_from_to_string_one("9", -1);
test_ioprio_class_from_to_string_one("-1", -1);
}
+#endif // 0
int main(int argc, char *argv[]) {
log_set_max_level(LOG_DEBUG);
int main(int argc, char *argv[]) {
log_set_max_level(LOG_DEBUG);
@@
-622,7
+624,9
@@
int main(int argc, char *argv[]) {
test_getpid_measure();
test_safe_fork();
test_pid_to_ptr();
test_getpid_measure();
test_safe_fork();
test_pid_to_ptr();
+#if 0 /// UNNEEDED by elogind
test_ioprio_class_from_to_string();
test_ioprio_class_from_to_string();
+#endif // 0
return 0;
}
return 0;
}