summaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorrpj <rpj>1999-02-20 03:06:22 +0000
committerrpj <rpj>1999-02-20 03:06:22 +0000
commit949ca2ccc5c972644c70238eee7d2099a3ede1f3 (patch)
tree15c5c309b5b9f8f32e8a1b9d853ab377c09044e9 /tests/test.h
parent4a30695c72d49a8d4a7c9dd7892456170eaa39d6 (diff)
1999-02-20 Ross Johnson <rpj@ise.canberra.edu.au>
* tests/mutex2.c: Test static mutex initialisation. * tests/test.h: New. Declares a table mapping error numbers to error names.
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h
new file mode 100644
index 0000000..0beeaab
--- /dev/null
+++ b/tests/test.h
@@ -0,0 +1,58 @@
+/*
+ * test.h
+ *
+ * Useful definitions and declarations for tests.
+ */
+
+#include <pthread.h>
+
+#ifndef _PTHREAD_TEST_H_
+#define _PTHREAD_TEST_H_
+
+char * error_string[] = {
+ "ZERO",
+ "EPERM",
+ "ENOFILE_or_ENOENT",
+ "ESRCH",
+ "EINTR",
+ "EIO",
+ "ENXIO",
+ "E2BIG",
+ "ENOEXEC",
+ "EBADF",
+ "ECHILD",
+ "EAGAIN",
+ "ENOMEM",
+ "EACCES",
+ "EFAULT",
+ "UNKNOWN_15",
+ "EBUSY",
+ "EEXIST",
+ "EXDEV",
+ "ENODEV",
+ "ENOTDIR",
+ "EISDIR",
+ "EINVAL",
+ "ENFILE",
+ "EMFILE",
+ "ENOTTY",
+ "UNKNOWN_26",
+ "EFBIG",
+ "ENOSPC",
+ "ESPIPE",
+ "EROFS",
+ "EMLINK",
+ "EPIPE",
+ "EDOM",
+ "ERANGE",
+ "UNKNOWN_35",
+ "EDEADLOCK_or_EDEADLK",
+ "UNKNOWN_37",
+ "ENAMETOOLONG",
+ "ENOLCK",
+ "ENOSYS",
+ "ENOTEMPTY",
+ "EILSEQ",
+};
+
+#endif