diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-14 12:06:34 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-16 10:12:50 +0100 |
commit | 1fd8edb53aa5894e9b8cbec87376ecce660d3087 (patch) | |
tree | cc9b092bf3411c4dc061ff069055973006035f2b /test/test-umount | |
parent | core/umount: use _cleanup_ (diff) | |
download | systemd-1fd8edb53aa5894e9b8cbec87376ecce660d3087.tar.xz systemd-1fd8edb53aa5894e9b8cbec87376ecce660d3087.zip |
test-umount: add a simple test for swap_list_get()
The implementation seems buggy:
/* test_swap_list("/home/zbyszek/src/systemd/test/test-umount/example.swaps") */
path=0 o= f=0x0 try-ro=no dev=0:0
path=/some/swapfile2 o= f=0x0 try-ro=no dev=0:0
path=/some/swapfile o= f=0x0 try-ro=no dev=0:0
path=/dev/dm-2 o= f=0x0 try-ro=no dev=0:0
Diffstat (limited to 'test/test-umount')
-rw-r--r-- | test/test-umount/example.swaps | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-umount/example.swaps b/test/test-umount/example.swaps new file mode 100644 index 0000000000..9de4e3e79f --- /dev/null +++ b/test/test-umount/example.swaps @@ -0,0 +1,4 @@ +Filename Type Size Used Priority +/dev/dm-2 partition 8151036 2283436 -2 +/some/swapfile file 111 111 0 +/some/swapfile2 (deleted) file 111 111 0 |