summaryrefslogtreecommitdiffstats
path: root/tests/expected/misc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/expected/misc/fallocate1
-rw-r--r--tests/expected/misc/flock3
-rw-r--r--tests/expected/misc/flock-exclusive1
-rw-r--r--tests/expected/misc/flock-no-fork1
-rw-r--r--tests/expected/misc/flock-non-block1
-rw-r--r--tests/expected/misc/flock-shared2
-rw-r--r--tests/expected/misc/flock-time-check1
-rw-r--r--tests/expected/misc/flock-timeout2
-rw-r--r--tests/expected/misc/ionice2
-rw-r--r--tests/expected/misc/ionice.err7
-rw-r--r--tests/expected/misc/line0
-rw-r--r--tests/expected/misc/line-empty-input2
-rw-r--r--tests/expected/misc/line-empty-input-wait-for-eof2
-rw-r--r--tests/expected/misc/line-large-line5
-rw-r--r--tests/expected/misc/line-one-call2
-rw-r--r--tests/expected/misc/line-text-without-eol2
-rw-r--r--tests/expected/misc/line-two-calls3
-rw-r--r--tests/expected/misc/line-wait-for-eof2
-rw-r--r--tests/expected/misc/mbsencode-invalid-ascii10
-rw-r--r--tests/expected/misc/mbsencode-invalid-utf810
-rw-r--r--tests/expected/misc/mbsencode-safe-ascii10
-rw-r--r--tests/expected/misc/mbsencode-safe-utf810
-rw-r--r--tests/expected/misc/mcookie1
-rw-r--r--tests/expected/misc/mountpoint0
-rw-r--r--tests/expected/misc/mountpoint-default2
-rw-r--r--tests/expected/misc/mountpoint-mutually-exclusive1
-rw-r--r--tests/expected/misc/mountpoint-mutually-exclusive.err1
-rw-r--r--tests/expected/misc/mountpoint-nofollow2
-rw-r--r--tests/expected/misc/rev4
-rw-r--r--tests/expected/misc/setarch-options21
-rw-r--r--tests/expected/misc/setarch-options.err4
-rw-r--r--tests/expected/misc/setarch-uname266
-rw-r--r--tests/expected/misc/setarch-uname26-version1
-rw-r--r--tests/expected/misc/setsid1
-rw-r--r--tests/expected/misc/strtosize26
-rw-r--r--tests/expected/misc/strtosize.err4
-rw-r--r--tests/expected/misc/swaplabel4
-rw-r--r--tests/expected/misc/swaplabel.err3
-rw-r--r--tests/expected/misc/whereis5
39 files changed, 165 insertions, 0 deletions
diff --git a/tests/expected/misc/fallocate b/tests/expected/misc/fallocate
new file mode 100644
index 0000000..e45b99e
--- /dev/null
+++ b/tests/expected/misc/fallocate
@@ -0,0 +1 @@
+384
diff --git a/tests/expected/misc/flock b/tests/expected/misc/flock
new file mode 100644
index 0000000..9c97396
--- /dev/null
+++ b/tests/expected/misc/flock
@@ -0,0 +1,3 @@
+Locking
+Unlocking
+Unlocked
diff --git a/tests/expected/misc/flock-exclusive b/tests/expected/misc/flock-exclusive
new file mode 100644
index 0000000..3582111
--- /dev/null
+++ b/tests/expected/misc/flock-exclusive
@@ -0,0 +1 @@
+Success
diff --git a/tests/expected/misc/flock-no-fork b/tests/expected/misc/flock-no-fork
new file mode 100644
index 0000000..3582111
--- /dev/null
+++ b/tests/expected/misc/flock-no-fork
@@ -0,0 +1 @@
+Success
diff --git a/tests/expected/misc/flock-non-block b/tests/expected/misc/flock-non-block
new file mode 100644
index 0000000..3582111
--- /dev/null
+++ b/tests/expected/misc/flock-non-block
@@ -0,0 +1 @@
+Success
diff --git a/tests/expected/misc/flock-shared b/tests/expected/misc/flock-shared
new file mode 100644
index 0000000..011f325
--- /dev/null
+++ b/tests/expected/misc/flock-shared
@@ -0,0 +1,2 @@
+Have shared lock
+Success
diff --git a/tests/expected/misc/flock-time-check b/tests/expected/misc/flock-time-check
new file mode 100644
index 0000000..2e9ba47
--- /dev/null
+++ b/tests/expected/misc/flock-time-check
@@ -0,0 +1 @@
+success
diff --git a/tests/expected/misc/flock-timeout b/tests/expected/misc/flock-timeout
new file mode 100644
index 0000000..b4cd5a4
--- /dev/null
+++ b/tests/expected/misc/flock-timeout
@@ -0,0 +1,2 @@
+After timeout.
+Success
diff --git a/tests/expected/misc/ionice b/tests/expected/misc/ionice
new file mode 100644
index 0000000..a4fdd04
--- /dev/null
+++ b/tests/expected/misc/ionice
@@ -0,0 +1,2 @@
+/etc/passwd
+none: prio 0
diff --git a/tests/expected/misc/ionice.err b/tests/expected/misc/ionice.err
new file mode 100644
index 0000000..7ef5399
--- /dev/null
+++ b/tests/expected/misc/ionice.err
@@ -0,0 +1,7 @@
+ionice: ignoring given class data for none class
+ionice: unknown prio class 7
+ionice: ioprio_set failed: Invalid argument
+ionice: unknown prio class 7
+ionice: ioprio_set failed: Invalid argument
+ionice: unknown prio class 8
+ionice: ioprio_set failed: Invalid argument
diff --git a/tests/expected/misc/line b/tests/expected/misc/line
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/misc/line
diff --git a/tests/expected/misc/line-empty-input b/tests/expected/misc/line-empty-input
new file mode 100644
index 0000000..29c61d5
--- /dev/null
+++ b/tests/expected/misc/line-empty-input
@@ -0,0 +1,2 @@
+
+ret: 1
diff --git a/tests/expected/misc/line-empty-input-wait-for-eof b/tests/expected/misc/line-empty-input-wait-for-eof
new file mode 100644
index 0000000..29c61d5
--- /dev/null
+++ b/tests/expected/misc/line-empty-input-wait-for-eof
@@ -0,0 +1,2 @@
+
+ret: 1
diff --git a/tests/expected/misc/line-large-line b/tests/expected/misc/line-large-line
new file mode 100644
index 0000000..dc4f520
--- /dev/null
+++ b/tests/expected/misc/line-large-line
@@ -0,0 +1,5 @@
+00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+*
+00100000 0a |.|
+00100001
+ret: 0
diff --git a/tests/expected/misc/line-one-call b/tests/expected/misc/line-one-call
new file mode 100644
index 0000000..cbf0b3b
--- /dev/null
+++ b/tests/expected/misc/line-one-call
@@ -0,0 +1,2 @@
+a
+ret: 0
diff --git a/tests/expected/misc/line-text-without-eol b/tests/expected/misc/line-text-without-eol
new file mode 100644
index 0000000..42f49d6
--- /dev/null
+++ b/tests/expected/misc/line-text-without-eol
@@ -0,0 +1,2 @@
+abc
+ret: 1
diff --git a/tests/expected/misc/line-two-calls b/tests/expected/misc/line-two-calls
new file mode 100644
index 0000000..dfe723f
--- /dev/null
+++ b/tests/expected/misc/line-two-calls
@@ -0,0 +1,3 @@
+1
+2
+ret: 0
diff --git a/tests/expected/misc/line-wait-for-eof b/tests/expected/misc/line-wait-for-eof
new file mode 100644
index 0000000..fcc3c8f
--- /dev/null
+++ b/tests/expected/misc/line-wait-for-eof
@@ -0,0 +1,2 @@
+xyz
+ret: 1
diff --git a/tests/expected/misc/mbsencode-invalid-ascii b/tests/expected/misc/mbsencode-invalid-ascii
new file mode 100644
index 0000000..4e759e1
--- /dev/null
+++ b/tests/expected/misc/mbsencode-invalid-ascii
@@ -0,0 +1,10 @@
+9 foo bar baz
+15 \\foo.local\bar
+19 \\foo.local\x5cxbar
+11 \xc3\xbcber
+21 c\xcc\x8ca\xcc\x81rka
+56 \xd0\x9c\xd0\xbe\xd1\x81\xd0\xba\xd0\xb2\xd0\xb0\xcc\x81
+24 \xe5\x8c\x97\xe4\xba\xac
+8 \xc2\x83
+4 \xff
+16 \xe8\xe1\xf9\xa7
diff --git a/tests/expected/misc/mbsencode-invalid-utf8 b/tests/expected/misc/mbsencode-invalid-utf8
new file mode 100644
index 0000000..b6b51e6
--- /dev/null
+++ b/tests/expected/misc/mbsencode-invalid-utf8
@@ -0,0 +1,10 @@
+9 foo bar baz
+15 \\foo.local\bar
+19 \\foo.local\x5cxbar
+4 über
+5 čárka
+6 Москва́
+4 北京
+-1 ƒ
+4 \xff
+16 \xe8\xe1\xf9\xa7
diff --git a/tests/expected/misc/mbsencode-safe-ascii b/tests/expected/misc/mbsencode-safe-ascii
new file mode 100644
index 0000000..a7473d7
--- /dev/null
+++ b/tests/expected/misc/mbsencode-safe-ascii
@@ -0,0 +1,10 @@
+14 foo\x09bar baz
+15 \\foo.local\bar
+19 \\foo.local\x5cxbar
+11 \xc3\xbcber
+21 c\xcc\x8ca\xcc\x81rka
+56 \xd0\x9c\xd0\xbe\xd1\x81\xd0\xba\xd0\xb2\xd0\xb0\xcc\x81
+24 \xe5\x8c\x97\xe4\xba\xac
+8 \xc2\x83
+4 \xff
+16 \xe8\xe1\xf9\xa7
diff --git a/tests/expected/misc/mbsencode-safe-utf8 b/tests/expected/misc/mbsencode-safe-utf8
new file mode 100644
index 0000000..63a417c
--- /dev/null
+++ b/tests/expected/misc/mbsencode-safe-utf8
@@ -0,0 +1,10 @@
+14 foo\x09bar baz
+15 \\foo.local\bar
+19 \\foo.local\x5cxbar
+4 über
+5 čárka
+6 Москва́
+4 北京
+8 \xc2\x83
+4 \xff
+16 \xe8\xe1\xf9\xa7
diff --git a/tests/expected/misc/mcookie b/tests/expected/misc/mcookie
new file mode 100644
index 0000000..d1c0351
--- /dev/null
+++ b/tests/expected/misc/mcookie
@@ -0,0 +1 @@
+the string meets expecations
diff --git a/tests/expected/misc/mountpoint b/tests/expected/misc/mountpoint
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/misc/mountpoint
diff --git a/tests/expected/misc/mountpoint-default b/tests/expected/misc/mountpoint-default
new file mode 100644
index 0000000..ca75055
--- /dev/null
+++ b/tests/expected/misc/mountpoint-default
@@ -0,0 +1,2 @@
+./symlink-to-mountpoint is a mountpoint
+0
diff --git a/tests/expected/misc/mountpoint-mutually-exclusive b/tests/expected/misc/mountpoint-mutually-exclusive
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/expected/misc/mountpoint-mutually-exclusive
@@ -0,0 +1 @@
+1
diff --git a/tests/expected/misc/mountpoint-mutually-exclusive.err b/tests/expected/misc/mountpoint-mutually-exclusive.err
new file mode 100644
index 0000000..2e8fefd
--- /dev/null
+++ b/tests/expected/misc/mountpoint-mutually-exclusive.err
@@ -0,0 +1 @@
+mountpoint: --devno and --nofollow are mutually exclusive
diff --git a/tests/expected/misc/mountpoint-nofollow b/tests/expected/misc/mountpoint-nofollow
new file mode 100644
index 0000000..b67c69f
--- /dev/null
+++ b/tests/expected/misc/mountpoint-nofollow
@@ -0,0 +1,2 @@
+./symlink-to-mountpoint is not a mountpoint
+32
diff --git a/tests/expected/misc/rev b/tests/expected/misc/rev
new file mode 100644
index 0000000..6387476
--- /dev/null
+++ b/tests/expected/misc/rev
@@ -0,0 +1,4 @@
+53bbf0d98205319cee2ba589e205c68b
+35484965b7a2fd45a471c0d80cb9752c
+cba
+321 \ No newline at end of file
diff --git a/tests/expected/misc/setarch-options b/tests/expected/misc/setarch-options
new file mode 100644
index 0000000..c06c8f5
--- /dev/null
+++ b/tests/expected/misc/setarch-options
@@ -0,0 +1,21 @@
+###### unknown arch
+exit: 1
+###### unknown command
+Execute command `/das/gibs/nicht'.
+exit: 127
+###### noop uname -a
+Execute command `uname'.
+uname -a unchanged
+###### almost all options
+Switching on ADDR_NO_RANDOMIZE.
+Switching on FDPIC_FUNCPTRS.
+Switching on MMAP_PAGE_ZERO.
+Switching on ADDR_COMPAT_LAYOUT.
+Switching on READ_IMPLIES_EXEC.
+Switching on ADDR_LIMIT_32BIT.
+Switching on SHORT_INODE.
+Switching on WHOLE_SECONDS.
+Switching on STICKY_TIMEOUTS.
+Switching on ADDR_LIMIT_3GB.
+Execute command `echo'.
+success
diff --git a/tests/expected/misc/setarch-options.err b/tests/expected/misc/setarch-options.err
new file mode 100644
index 0000000..a6e064e
--- /dev/null
+++ b/tests/expected/misc/setarch-options.err
@@ -0,0 +1,4 @@
+###### unknown arch
+setarch: qubit: Unrecognized architecture
+###### unknown command
+setarch: failed to execute /das/gibs/nicht: No such file or directory
diff --git a/tests/expected/misc/setarch-uname26 b/tests/expected/misc/setarch-uname26
new file mode 100644
index 0000000..13667af
--- /dev/null
+++ b/tests/expected/misc/setarch-uname26
@@ -0,0 +1,6 @@
+###### --uname-2.6 echo
+Switching on UNAME26.
+Execute command `echo'.
+2.6 works or kernel too old
+###### --uname-2.6 true, non-verbose
+2.6 works or kernel too old
diff --git a/tests/expected/misc/setarch-uname26-version b/tests/expected/misc/setarch-uname26-version
new file mode 100644
index 0000000..9c746e1
--- /dev/null
+++ b/tests/expected/misc/setarch-uname26-version
@@ -0,0 +1 @@
+kernel version changed to 2.6
diff --git a/tests/expected/misc/setsid b/tests/expected/misc/setsid
new file mode 100644
index 0000000..2e9ba47
--- /dev/null
+++ b/tests/expected/misc/setsid
@@ -0,0 +1 @@
+success
diff --git a/tests/expected/misc/strtosize b/tests/expected/misc/strtosize
new file mode 100644
index 0000000..0f912f7
--- /dev/null
+++ b/tests/expected/misc/strtosize
@@ -0,0 +1,26 @@
+ 0 : 0 : 0B : 0 B : 0 B
+ 1 : 1 : 1B : 1 B : 1 B
+ 123 : 123 : 123B : 123 B : 123 B
+ 18446744073709551615 : 18446744073709551615 : 16E : 16 EiB : 16 EiB
+ 1K : 1024 : 1K : 1 KiB : 1 KiB
+ 1KiB : 1024 : 1K : 1 KiB : 1 KiB
+ 1M : 1048576 : 1M : 1 MiB : 1 MiB
+ 1MiB : 1048576 : 1M : 1 MiB : 1 MiB
+ 1G : 1073741824 : 1G : 1 GiB : 1 GiB
+ 1GiB : 1073741824 : 1G : 1 GiB : 1 GiB
+ 1T : 1099511627776 : 1T : 1 TiB : 1 TiB
+ 1TiB : 1099511627776 : 1T : 1 TiB : 1 TiB
+ 1P : 1125899906842624 : 1P : 1 PiB : 1 PiB
+ 1PiB : 1125899906842624 : 1P : 1 PiB : 1 PiB
+ 1E : 1152921504606846976 : 1E : 1 EiB : 1 EiB
+ 1EiB : 1152921504606846976 : 1E : 1 EiB : 1 EiB
+ 1KB : 1000 : 1000B : 1000 B : 1000 B
+ 1MB : 1000000 : 976.6K : 976.6 KiB : 976.56 KiB
+ 1GB : 1000000000 : 953.7M : 953.7 MiB : 953.67 MiB
+ 1TB : 1000000000000 : 931.3G : 931.3 GiB : 931.32 GiB
+ 1PB : 1000000000000000 : 909.5T : 909.5 TiB : 909.49 TiB
+ 1EB : 1000000000000000000 : 888.2P : 888.2 PiB : 888.18 PiB
+ 1 : 1 : 1B : 1 B : 1 B
+ 0x0a : 10 : 10B : 10 B : 10 B
+ 0xff00 : 65280 : 63.8K : 63.8 KiB : 63.75 KiB
+ 0x80000000 : 2147483648 : 2G : 2 GiB : 2 GiB
diff --git a/tests/expected/misc/strtosize.err b/tests/expected/misc/strtosize.err
new file mode 100644
index 0000000..67c9b87
--- /dev/null
+++ b/tests/expected/misc/strtosize.err
@@ -0,0 +1,4 @@
+test_strutils: invalid size '-1' value
+test_strutils: invalid size '' value
+test_strutils: invalid size ' ' value
+test_strutils: invalid size '1 ' value
diff --git a/tests/expected/misc/swaplabel b/tests/expected/misc/swaplabel
new file mode 100644
index 0000000..22255bf
--- /dev/null
+++ b/tests/expected/misc/swaplabel
@@ -0,0 +1,4 @@
+Setting up swapspace version 1, size = 9 pages (9xPGSZ bytes)
+LABEL=1234567890abcde, UUID=12345678-abcd-abcd-abcd-1234567890ab
+LABEL: 1234567890abcde
+UUID: 12345678-abcd-abcd-abcd-1234567890ab
diff --git a/tests/expected/misc/swaplabel.err b/tests/expected/misc/swaplabel.err
new file mode 100644
index 0000000..1544511
--- /dev/null
+++ b/tests/expected/misc/swaplabel.err
@@ -0,0 +1,3 @@
+mkswap: error: swap area needs to be at least 10 pages
+mkswap: <swapfile>: insecure permissions <perm>, fix with: chmod 0600 <swapfile>
+mkswap: Label was truncated.
diff --git a/tests/expected/misc/whereis b/tests/expected/misc/whereis
new file mode 100644
index 0000000..69d1a6e
--- /dev/null
+++ b/tests/expected/misc/whereis
@@ -0,0 +1,5 @@
+fsck success
+fsck.ext4 success
+python success
+python3 success
+python3.8 success