diff options
| author | 2026-05-11 09:39:57 +0800 | |
|---|---|---|
| committer | 2026-05-10 15:54:12 -1000 | |
| commit | 2a3d7256faf06d1a15bb5b07e851ac4e1680c26d (patch) | |
| tree | d0a8f9f2081e2a891f0953dfa8de3bf71928e742 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | selftests/cgroup: Fix cg_read_strcmp() empty string comparison (diff) | |
selftests/cgroup: Fix string comparison in write_test
Use string comparison (!=) instead of numeric comparison (-ne) for
cpuset values like "0-1".
For example:
$ [[ "0-1" != "2-3" ]] && echo "true" || echo "false"
true
$ [[ "0-1" -ne "2-3" ]] && echo "true" || echo "false"
false
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
