Fixed a potential issue with the unit test order (reserved file cleanup was missing) (#1137)

* Fixed a potential issue with the unit test order

* Updated error handling
This commit is contained in:
Uwe Seimet
2023-03-28 10:21:36 +02:00
committed by GitHub
parent 8987ce30cd
commit 07e953fa77
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ bool GPIOBUS_Raspberry::Init(mode_e mode)
// Map peripheral region memory
void *map = mmap(NULL, 0x1000100, PROT_READ | PROT_WRITE, MAP_SHARED, fd, baseaddr);
if (map == MAP_FAILED) {
LOGERROR("Error: Unable to map memory")
LOGERROR("Error: Unable to map memory: %s", strerror(errno))
close(fd);
return false;
}
@@ -985,4 +985,4 @@ uint32_t GPIOBUS_Raspberry::Acquire()
#endif // SIGNAL_CONTROL_MODE
return signals;
}
}