From 1127c36ceb3b561f26b690f1d73fefbeaa97d105 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 7 Mar 2018 21:01:37 -0700
Subject: [PATCH] Add strerror to error test

---
 tests/error.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/error.c b/tests/error.c
index f904b734..67fb25ed 100644
--- a/tests/error.c
+++ b/tests/error.c
@@ -1,8 +1,9 @@
 #include <unistd.h>
 #include <stdio.h>
+#include <string.h>
 #include <errno.h>
 
 int main(int argc, char** argv) {
-    chdir("nonexistent"); 
-    printf("errno: %d\n", errno);
+    chdir("nonexistent");
+    printf("errno: %d = %s\n", errno, strerror(errno));
 }
-- 
GitLab