summaryrefslogtreecommitdiffstats
path: root/test/test-umount
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-14 12:06:34 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-16 10:12:50 +0100
commit1fd8edb53aa5894e9b8cbec87376ecce660d3087 (patch)
treecc9b092bf3411c4dc061ff069055973006035f2b /test/test-umount
parentcore/umount: use _cleanup_ (diff)
downloadsystemd-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.swaps4
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