Stanislav Fomichev
a8911d6d58
selftests/bpf: fix incorrect users of create_and_get_cgroup
...
We have some tests that assume create_and_get_cgroup returns -1 on error
which is incorrect (it returns 0 on error). Since fd might be zero in
general case, change create_and_get_cgroup to return -1 on error
and fix the users that assume 0 on error.
Fixes: f269099a7e
("tools/bpf: add a selftest for bpf_get_current_cgroup_id() helper")
Fixes: 7d2c6cfc54
("bpf: use --cgroup in test_suite if supplied")
v2:
- instead of fixing the uses that assume -1 on error, convert the users
that assume 0 on error (fd might be zero in general case)
Signed-off-by: Stanislav Fomichev <sdf@google.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2019-01-07 13:15:55 -08:00
..
2018-12-17 09:17:55 -07:00
2019-01-07 13:15:55 -08:00
2018-05-30 15:21:52 -06:00
2017-11-02 11:10:55 +01:00
2018-09-07 16:36:01 -06:00
2018-05-30 15:21:52 -06:00
2018-05-30 15:21:52 -06:00
2018-12-28 21:27:13 -08:00
2018-09-05 10:58:07 -06:00
2018-05-30 15:21:52 -06:00
2018-05-30 15:21:52 -06:00
2018-11-27 14:20:36 -07:00
2018-12-31 11:46:59 -08:00
2018-12-17 09:17:55 -07:00
2018-12-17 09:17:55 -07:00
2017-11-02 11:10:55 +01:00
2018-12-11 07:19:47 -05:00
2018-05-30 21:31:31 -06:00
2018-05-30 15:21:53 -06:00
2018-11-06 09:27:17 -07:00
2017-11-02 11:10:55 +01:00
2018-05-30 15:21:53 -06:00
2018-12-21 13:58:46 +01:00
2018-05-30 21:32:55 -06:00
2018-05-30 15:29:06 -06:00
2018-05-30 15:29:06 -06:00
2018-05-30 15:29:06 -06:00
2018-05-30 15:29:06 -06:00
2018-09-05 10:58:31 -06:00
2018-08-09 11:26:07 -06:00
2018-05-30 15:29:06 -06:00
2019-01-04 13:38:39 -08:00
2018-11-12 16:13:35 +01:00
2018-12-27 13:04:52 -08:00
2018-01-12 11:41:33 -07:00
2018-01-28 22:17:24 -05:00
2018-12-21 14:46:50 +11:00
2017-11-02 11:10:55 +01:00
2018-11-30 14:56:14 -08:00
2018-06-18 09:11:09 -06:00
2018-01-04 14:57:10 +01:00
2017-11-02 11:10:55 +01:00
2018-12-01 12:43:16 -08:00
2018-09-27 12:59:19 -06:00
2018-05-30 15:21:51 -06:00
2019-01-02 09:48:13 -08:00
2017-11-02 11:10:55 +01:00
2017-06-14 18:23:27 -06:00
2018-06-18 09:29:20 -06:00
2017-11-02 11:10:55 +01:00
2018-06-18 09:11:09 -06:00
2018-06-18 09:11:10 -06:00
2018-06-18 09:11:09 -06:00
2018-12-27 13:04:52 -08:00
2018-07-10 12:43:21 -07:00
2018-05-23 15:24:22 -04:00
2018-06-18 09:11:09 -06:00
2018-07-11 10:14:26 -06:00
2018-12-17 09:17:55 -07:00
2018-12-13 13:03:19 -07:00
2018-10-04 08:17:50 +02:00
2018-06-18 09:11:09 -06:00
2017-04-25 09:49:38 -06:00
2018-01-12 11:44:31 -07:00
2018-12-10 10:55:52 -07:00
2018-01-12 11:45:05 -07:00
2018-08-27 14:07:46 -06:00
2018-12-17 09:17:55 -07:00
2019-01-02 09:43:14 -08:00