diff options
Diffstat (limited to 'lib9p/tests')
-rw-r--r-- | lib9p/tests/test_compile.c | 131 | ||||
-rw-r--r-- | lib9p/tests/testclient-p9p.explog | 12 | ||||
-rw-r--r-- | lib9p/tests/testclient-sess.explog | 2 |
3 files changed, 138 insertions, 7 deletions
diff --git a/lib9p/tests/test_compile.c b/lib9p/tests/test_compile.c index 2895c7c..4532655 100644 --- a/lib9p/tests/test_compile.c +++ b/lib9p/tests/test_compile.c @@ -61,6 +61,137 @@ int main(void) { x = LIB9P_O_MODE_MASK; x = LIB9P_NUID_NONUID; x = LIB9P_ERRNO_NOERROR; + x = LIB9P_ERRNO_L_EPERM; + x = LIB9P_ERRNO_L_ENOENT; + x = LIB9P_ERRNO_L_ESRCH; + x = LIB9P_ERRNO_L_EINTR; + x = LIB9P_ERRNO_L_EIO; + x = LIB9P_ERRNO_L_ENXIO; + x = LIB9P_ERRNO_L_E2BIG; + x = LIB9P_ERRNO_L_ENOEXEC; + x = LIB9P_ERRNO_L_EBADF; + x = LIB9P_ERRNO_L_ECHILD; + x = LIB9P_ERRNO_L_EAGAIN; + x = LIB9P_ERRNO_L_ENOMEM; + x = LIB9P_ERRNO_L_EACCES; + x = LIB9P_ERRNO_L_EFAULT; + x = LIB9P_ERRNO_L_ENOTBLK; + x = LIB9P_ERRNO_L_EBUSY; + x = LIB9P_ERRNO_L_EEXIST; + x = LIB9P_ERRNO_L_EXDEV; + x = LIB9P_ERRNO_L_ENODEV; + x = LIB9P_ERRNO_L_ENOTDIR; + x = LIB9P_ERRNO_L_EISDIR; + x = LIB9P_ERRNO_L_EINVAL; + x = LIB9P_ERRNO_L_ENFILE; + x = LIB9P_ERRNO_L_EMFILE; + x = LIB9P_ERRNO_L_ENOTTY; + x = LIB9P_ERRNO_L_ETXTBSY; + x = LIB9P_ERRNO_L_EFBIG; + x = LIB9P_ERRNO_L_ENOSPC; + x = LIB9P_ERRNO_L_ESPIPE; + x = LIB9P_ERRNO_L_EROFS; + x = LIB9P_ERRNO_L_EMLINK; + x = LIB9P_ERRNO_L_EPIPE; + x = LIB9P_ERRNO_L_EDOM; + x = LIB9P_ERRNO_L_ERANGE; + x = LIB9P_ERRNO_L_EDEADLK; + x = LIB9P_ERRNO_L_ENAMETOOLONG; + x = LIB9P_ERRNO_L_ENOLCK; + x = LIB9P_ERRNO_L_ENOSYS; + x = LIB9P_ERRNO_L_ENOTEMPTY; + x = LIB9P_ERRNO_L_ELOOP; + x = LIB9P_ERRNO_L_ENOMSG; + x = LIB9P_ERRNO_L_EIDRM; + x = LIB9P_ERRNO_L_ECHRNG; + x = LIB9P_ERRNO_L_EL2NSYNC; + x = LIB9P_ERRNO_L_EL3HLT; + x = LIB9P_ERRNO_L_EL3RST; + x = LIB9P_ERRNO_L_ELNRNG; + x = LIB9P_ERRNO_L_EUNATCH; + x = LIB9P_ERRNO_L_ENOCSI; + x = LIB9P_ERRNO_L_EL2HLT; + x = LIB9P_ERRNO_L_EBADE; + x = LIB9P_ERRNO_L_EBADR; + x = LIB9P_ERRNO_L_EXFULL; + x = LIB9P_ERRNO_L_ENOANO; + x = LIB9P_ERRNO_L_EBADRQC; + x = LIB9P_ERRNO_L_EBADSLT; + x = LIB9P_ERRNO_L_EBFONT; + x = LIB9P_ERRNO_L_ENOSTR; + x = LIB9P_ERRNO_L_ENODATA; + x = LIB9P_ERRNO_L_ETIME; + x = LIB9P_ERRNO_L_ENOSR; + x = LIB9P_ERRNO_L_ENONET; + x = LIB9P_ERRNO_L_ENOPKG; + x = LIB9P_ERRNO_L_EREMOTE; + x = LIB9P_ERRNO_L_ENOLINK; + x = LIB9P_ERRNO_L_EADV; + x = LIB9P_ERRNO_L_ESRMNT; + x = LIB9P_ERRNO_L_ECOMM; + x = LIB9P_ERRNO_L_EPROTO; + x = LIB9P_ERRNO_L_EMULTIHOP; + x = LIB9P_ERRNO_L_EDOTDOT; + x = LIB9P_ERRNO_L_EBADMSG; + x = LIB9P_ERRNO_L_EOVERFLOW; + x = LIB9P_ERRNO_L_ENOTUNIQ; + x = LIB9P_ERRNO_L_EBADFD; + x = LIB9P_ERRNO_L_EREMCHG; + x = LIB9P_ERRNO_L_ELIBACC; + x = LIB9P_ERRNO_L_ELIBBAD; + x = LIB9P_ERRNO_L_ELIBSCN; + x = LIB9P_ERRNO_L_ELIBMAX; + x = LIB9P_ERRNO_L_ELIBEXEC; + x = LIB9P_ERRNO_L_EILSEQ; + x = LIB9P_ERRNO_L_ERESTART; + x = LIB9P_ERRNO_L_ESTRPIPE; + x = LIB9P_ERRNO_L_EUSERS; + x = LIB9P_ERRNO_L_ENOTSOCK; + x = LIB9P_ERRNO_L_EDESTADDRREQ; + x = LIB9P_ERRNO_L_EMSGSIZE; + x = LIB9P_ERRNO_L_EPROTOTYPE; + x = LIB9P_ERRNO_L_ENOPROTOOPT; + x = LIB9P_ERRNO_L_EPROTONOSUPPORT; + x = LIB9P_ERRNO_L_ESOCKTNOSUPPORT; + x = LIB9P_ERRNO_L_EOPNOTSUPP; + x = LIB9P_ERRNO_L_EPFNOSUPPORT; + x = LIB9P_ERRNO_L_EAFNOSUPPORT; + x = LIB9P_ERRNO_L_EADDRINUSE; + x = LIB9P_ERRNO_L_EADDRNOTAVAIL; + x = LIB9P_ERRNO_L_ENETDOWN; + x = LIB9P_ERRNO_L_ENETUNREACH; + x = LIB9P_ERRNO_L_ENETRESET; + x = LIB9P_ERRNO_L_ECONNABORTED; + x = LIB9P_ERRNO_L_ECONNRESET; + x = LIB9P_ERRNO_L_ENOBUFS; + x = LIB9P_ERRNO_L_EISCONN; + x = LIB9P_ERRNO_L_ENOTCONN; + x = LIB9P_ERRNO_L_ESHUTDOWN; + x = LIB9P_ERRNO_L_ETOOMANYREFS; + x = LIB9P_ERRNO_L_ETIMEDOUT; + x = LIB9P_ERRNO_L_ECONNREFUSED; + x = LIB9P_ERRNO_L_EHOSTDOWN; + x = LIB9P_ERRNO_L_EHOSTUNREACH; + x = LIB9P_ERRNO_L_EALREADY; + x = LIB9P_ERRNO_L_EINPROGRESS; + x = LIB9P_ERRNO_L_ESTALE; + x = LIB9P_ERRNO_L_EUCLEAN; + x = LIB9P_ERRNO_L_ENOTNAM; + x = LIB9P_ERRNO_L_ENAVAIL; + x = LIB9P_ERRNO_L_EISNAM; + x = LIB9P_ERRNO_L_EREMOTEIO; + x = LIB9P_ERRNO_L_EDQUOT; + x = LIB9P_ERRNO_L_ENOMEDIUM; + x = LIB9P_ERRNO_L_EMEDIUMTYPE; + x = LIB9P_ERRNO_L_ECANCELED; + x = LIB9P_ERRNO_L_ENOKEY; + x = LIB9P_ERRNO_L_EKEYEXPIRED; + x = LIB9P_ERRNO_L_EKEYREVOKED; + x = LIB9P_ERRNO_L_EKEYREJECTED; + x = LIB9P_ERRNO_L_EOWNERDEAD; + x = LIB9P_ERRNO_L_ENOTRECOVERABLE; + x = LIB9P_ERRNO_L_ERFKILL; + x = LIB9P_ERRNO_L_EHWPOISON; x = LIB9P_SUPER_MAGIC_V9FS_MAGIC; x = _LIB9P_LO_UNUSED_31; x = _LIB9P_LO_UNUSED_30; diff --git a/lib9p/tests/testclient-p9p.explog b/lib9p/tests/testclient-p9p.explog index 4ba19b3..e5901d2 100644 --- a/lib9p/tests/testclient-p9p.explog +++ b/lib9p/tests/testclient-p9p.explog @@ -5,7 +5,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=0 wname=[ ] } @@ -27,7 +27,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=1 wname=[ "Documentation" ] } @@ -49,7 +49,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=1 wname=[ "README.md" ] } @@ -65,7 +65,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=2 wname=[ "Documentation", "x" ] } @@ -81,7 +81,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=2 wname=[ "Documentation", "x" ] } @@ -93,7 +93,7 @@ > Tversion { tag=NOTAG max_msg_size=8192 version="9P2000" } < Rversion { tag=NOTAG max_msg_size=4120 version="9P2000" } > Tauth { tag=0 afid=0 uname="nobody" aname="" n_uid=0 } -< Rerror { tag=0 errstr="authentication not required" errnum=95 } +< Rerror { tag=0 errstr="authentication not required" errnum=L_EOPNOTSUPP } > Tattach { tag=0 fid=0 afid=NOFID uname="nobody" aname="" n_uid=0 } < Rattach { tag=0 qid={ type=(DIR) vers=1 path=1 } } > Twalk { tag=0 fid=0 newfid=1 nwname=1 wname=[ "shutdown" ] } diff --git a/lib9p/tests/testclient-sess.explog b/lib9p/tests/testclient-sess.explog index aa5ecb8..268da72 100644 --- a/lib9p/tests/testclient-sess.explog +++ b/lib9p/tests/testclient-sess.explog @@ -55,7 +55,7 @@ > Tread { tag=1 fid=2 offset=0 count=6 } > Tflush { tag=2 oldtag=1 } < Rflush { tag=2 } -< Rerror { tag=1 errstr="request canceled by flush" errnum=125 } +< Rerror { tag=1 errstr="request canceled by flush" errnum=L_ECANCELED } # flush, unknown tag > Tflush { tag=0 oldtag=99 } |